Skip to content
Success

Changes

Summary

  1. Downgrade NMS revision (details)
  2. SPIGOT-6205: Rewrite enum to/from NMS type methods (details)
Commit dd10b375c2bca25cf5f7acf2a832895839dcbaf0 by md_5
Downgrade NMS revision

This is not a precedent, please see https://www.spigotmc.org/wiki/nms/
The file was modified pom.xml
Commit ce64c84ca8c959a290a80a7d59b69809dad8206a by md_5
SPIGOT-6205: Rewrite enum to/from NMS type methods

The methods would otherwise cache wrong enum types for specific enums.
This would result in a `ClassCastException` at the caller location,
which obviously is no fun. This broke API with `Switch#getFace` and
`FaceAttachable#getAttachedFace`.

The existing implementation was also stupid.
The file was modified src/main/java/org/bukkit/craftbukkit/block/data/CraftBlockData.java