Skip to content
Success

Changes

Summary

  1. #1403, SPIGOT-4288, SPIGOT-6202: Add material rerouting in preparation (details)
Commit 960827981518e9359afab7864f8920fd5d76a2d9 by md_5
#1403, SPIGOT-4288, SPIGOT-6202: Add material rerouting in preparation for the switch to ItemType and BlockType

This also moves the conversion from and to legacy material to the method
calls of legacy plugins, and no longer allows them directly in the
server.

This has the side effect of fixing some legacy plugin issues, such as
SPIGOT-4288, SPIGOT-6161. Also fixes legacy items sometimes not stacking
in inventory when using addItem, a client disconnect when using legacy
items in recipes and probably some more.
The file was addedsrc/main/java/org/bukkit/craftbukkit/legacy/MaterialRerouting.java
The file was modifiedsrc/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java
The file was modifiedsrc/main/java/org/bukkit/craftbukkit/legacy/CraftLegacy.java
The file was modifiedsrc/main/java/org/bukkit/craftbukkit/util/Commodore.java
The file was modifiedsrc/test/java/org/bukkit/craftbukkit/legacy/RerouteValidationTest.java
The file was addedsrc/test/java/org/bukkit/craftbukkit/legacy/MaterialReroutingTest.java
The file was modifiedsrc/main/java/org/bukkit/craftbukkit/legacy/CraftEvil.java