mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
SPIGOT-3598: Persist all beacon effects
Regardless of if they are possible in Vanilla by default. By: blablubbabc <lukas@wirsindwir.de>
This commit is contained in:
parent
ec331ba7fd
commit
dd5c01cf48
1 changed files with 13 additions and 0 deletions
|
@ -142,3 +142,16 @@
|
||||||
|
|
||||||
private void F() {
|
private void F() {
|
||||||
int i = this.position.getX();
|
int i = this.position.getX();
|
||||||
|
@@ -195,8 +272,10 @@
|
||||||
|
|
||||||
|
public void load(NBTTagCompound nbttagcompound) {
|
||||||
|
super.load(nbttagcompound);
|
||||||
|
- this.primaryEffect = f(nbttagcompound.getInt("Primary"));
|
||||||
|
- this.secondaryEffect = f(nbttagcompound.getInt("Secondary"));
|
||||||
|
+ // 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"));
|
||||||
|
+ // Craftbukkit end
|
||||||
|
this.levels = nbttagcompound.getInt("Levels");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue