78cf875080
Quick-fix for crafting with big crafting grid after cancelling PlayerInteractEvent on a crafting table
...
this is not an ideal solution, but it works. Crafting is messy and is going to need more refactoring. Fixes #1480
2017-11-28 19:23:26 +00:00
878f1bffb9
CraftingTransaction: Don't hardcode crafting grid sizes
2017-11-28 17:29:53 +00:00
98ac6fc7be
Check inventory slot is in range in SlotChangeAction
2017-11-28 16:56:02 +00:00
74b074753f
Bulk addition of constant visibilities
...
thanks PhpStorm inspections plugin for annoying the shit out of me until
I did this.
2017-11-21 14:44:10 +00:00
97e2d64592
"Fixed" shift-clicking recipe book, close #1401
...
this is not an optimal solution because you'll still only get 1 crafting
event when the user actually crafted a lot of items, so this isn't very
nice for plugins to work with. However, for gameplay purposes it works,
so it'll do for now.
2017-10-15 18:08:32 +01:00
ca401ec3f5
Force-close the crafting window only when doing crafting transactions
...
otherwise the client will crash when using right-click on the recipe book
2017-10-03 11:33:09 +01:00
9bbebaa071
Force-close the inventory window when crafting fails to avoid desync issues
...
mojang, why does this have to be hard work
2017-10-03 11:04:21 +01:00
6b0ac8adb8
Don't overwrite the input map with reindexed stuff
...
we might need this again?
2017-09-24 19:17:00 +01:00
240cc3043a
Rewritten crafting, fixed #45
2017-09-24 14:14:24 +01:00
f01ce8e994
null and void typehints
2017-09-21 12:54:04 +01:00
d89b8cf12e
Clean up SlotChangeAction inventory handling
2017-09-21 12:44:03 +01:00
dbed80386a
Removed redundant interface
2017-09-21 12:22:47 +01:00
ef6250967f
Use Item->isNull() more
2017-09-21 10:29:29 +01:00
55720d9f0a
Added InventoryAction->onPreExecute(), fixed PlayerDropItemEvent deleting items
2017-09-20 12:19:42 +01:00
bd64172750
Added API method Item->equalsExact() and removed some boilerplate code
2017-09-15 16:48:46 +01:00
63634d7e7d
Added compaction and sorting for repeated slot changes in a single transaction
...
Now items should be able to move around the crafting grid correctly.
2017-09-15 13:32:17 +01:00
a3d21de559
Cleaned up network inventory action reading and core action creation
2017-08-28 20:04:35 +01:00
83fcec3e94
Don't add actions to the transaction if a crash occurred when getting the source inventory
2017-08-12 14:29:12 +01:00
8958b3c51c
Many many changes related to inventory transactions, fixed item dropping, fixed creative menu
2017-08-11 19:57:30 +01:00