@zardoy/flying-squid 0.0.96 → 0.0.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -174,6 +174,8 @@ const player = function (player, serv, { version }) {
174
174
  }
175
175
  });
176
176
  player._client.on('set_creative_slot', ({ slot, item } = {}) => {
177
+ if (player.gameMode !== 1)
178
+ return;
177
179
  const window = player.customWindow || player.inventory;
178
180
  if (item.blockId === -1) {
179
181
  window.updateSlot(slot, null);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zardoy/flying-squid",
3
3
  "description": "A minecraft server written in TS",
4
- "version": "0.0.96",
4
+ "version": "0.0.97",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "bin": "dist/app.js",