This commit is contained in:
libraryaddict 2024-07-14 00:08:28 +12:00
parent 4c8337cefa
commit a48def08d7

View File

@ -93,6 +93,7 @@ public class MiscDisguise extends TargetedDisguise {
switch (getType()) { switch (getType()) {
// The only disguises which should use a custom data. // The only disguises which should use a custom data.
case PAINTING: case PAINTING:
// Should've been removed ages ago, but finally breaks in 1.21 where the enum change means this is not an enum anymore
if (!NmsVersion.v1_21_R1.isSupported()) { if (!NmsVersion.v1_21_R1.isSupported()) {
((PaintingWatcher) getWatcher()).setArt(ReflectionManager.fromEnum(Art.class, id)); ((PaintingWatcher) getWatcher()).setArt(ReflectionManager.fromEnum(Art.class, id));
} }