mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2025-01-30 23:01:50 +01:00
Add note
This commit is contained in:
parent
4c8337cefa
commit
a48def08d7
@ -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));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user