@@ -125,11 +125,11 @@
|
||||
super.load(nbttagcompound);
|
||||
- this.primaryEffect = b(nbttagcompound.getInt("Primary"));
|
||||
- this.secondaryEffect = b(nbttagcompound.getInt("Secondary"));
|
||||
+ // Craftbukkit start - persist manually set non-default beacon effects (SPIGOT-3598)
|
||||
+ // CraftBukkit start - persist manually set non-default beacon effects (SPIGOT-3598)
|
||||
+ this.primaryEffect = MobEffectList.fromId(nbttagcompound.getInt("Primary"));
|
||||
+ this.secondaryEffect = MobEffectList.fromId(nbttagcompound.getInt("Secondary"));
|
||||
+ this.levels = nbttagcompound.getInt("Levels"); // SPIGOT-5053, use where available
|
||||
+ // Craftbukkit end
|
||||
+ // CraftBukkit end
|
||||
if (nbttagcompound.hasKeyOfType("CustomName", 8)) {
|
||||
this.customName = IChatBaseComponent.ChatSerializer.a(nbttagcompound.getString("CustomName"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user