From 411609dc8199dd53dcafbf39e84ef9d3700703b8 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 10 Jun 2019 19:09:51 +1000 Subject: [PATCH] SPIGOT-5053: Initialize beacon with stored levels where available --- nms-patches/TileEntityBeacon.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nms-patches/TileEntityBeacon.patch b/nms-patches/TileEntityBeacon.patch index e8a3a10aa9..55ff6504f1 100644 --- a/nms-patches/TileEntityBeacon.patch +++ b/nms-patches/TileEntityBeacon.patch @@ -119,7 +119,7 @@ public void a(SoundEffect soundeffect) { this.world.a((EntityHuman) null, this.position, soundeffect, SoundCategory.BLOCKS, 1.0F, 1.0F); } -@@ -254,8 +309,10 @@ +@@ -254,8 +309,11 @@ @Override public void load(NBTTagCompound nbttagcompound) { super.load(nbttagcompound); @@ -128,6 +128,7 @@ + // 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 if (nbttagcompound.hasKeyOfType("CustomName", 8)) { this.customName = IChatBaseComponent.ChatSerializer.a(nbttagcompound.getString("CustomName"));