Falling Block and Dropped Item now show their proper name for disguise name

This commit is contained in:
libraryaddict
2020-04-21 14:54:10 +12:00
parent a896d89633
commit 884f9471ca
4 changed files with 15 additions and 1 deletions

View File

@@ -792,6 +792,7 @@ public class DisguiseParser {
if (disguisePerm.getType() == DisguiseType.DROPPED_ITEM ||
disguisePerm.getType() == DisguiseType.FALLING_BLOCK) {
disguise = new MiscDisguise(disguisePerm.getType(), itemStack);
name = disguise.getDisguiseName();
} else {
disguise = new MiscDisguise(disguisePerm.getType(), miscId);
}