@zardoy/flying-squid 0.0.99 → 0.0.100

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.
@@ -75,7 +75,7 @@ const player = function (player, serv, { version }) {
75
75
  items: player.inventory.slots.map(item => Item.toNotch(item)),
76
76
  carriedItem: { present: false }
77
77
  });
78
- player.customWindow = undefined;
78
+ options.onClose?.(window);
79
79
  };
80
80
  const listener = ({ windowId }) => {
81
81
  if (windowId !== player.windowId)
@@ -96,6 +96,7 @@ const player = function (player, serv, { version }) {
96
96
  onWindowClosed();
97
97
  };
98
98
  window.close = closeWindow;
99
+ player.customWindow = window;
99
100
  return window;
100
101
  };
101
102
  serv.tabComplete.add('inventoryType', () => {
@@ -122,7 +123,6 @@ const player = function (player, serv, { version }) {
122
123
  windowSlots: new Array(52).fill(null).map((_, i) => new serv.PrismarineItem(1, 1, 0)),
123
124
  resultSlot: new serv.PrismarineItem(serv.mcData.itemsByName.redstone_block.id, 1, 0),
124
125
  onSlotClick: (slot, oldItem, newItem, closeWindow) => {
125
- closeWindow();
126
126
  }
127
127
  });
128
128
  }
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.99",
4
+ "version": "0.0.100",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "bin": "dist/app.js",