mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 19:59:36 +00:00
Fix another potential race in GG boss bar collection
This commit is contained in:
1 parent
e9bd8e51cc
commit
ba8c4f8af4
1 file changed
+6
-2
@@ -150,7 +150,9 @@ public class EntityDoppleganger extends EntityLiving implements IBotaniaBoss {
|
||||
setSize(0.6F, 1.8F);
|
||||
isImmuneToFire = true;
|
||||
experienceValue = 825;
|
||||
Botania.proxy.addBoss(this);
|
||||
if(world.isRemote) {
|
||||
Botania.proxy.addBoss(this);
|
||||
}
|
||||
}
|
||||
|
||||
public static MultiblockSet makeMultiblockSet() {
|
||||
@@ -509,7 +511,9 @@ public class EntityDoppleganger extends EntityLiving implements IBotaniaBoss {
|
||||
|
||||
@Override
|
||||
public void setDead() {
|
||||
Botania.proxy.removeBoss(this);
|
||||
if(world.isRemote) {
|
||||
Botania.proxy.removeBoss(this);
|
||||
}
|
||||
world.playEvent(1010, getSource(), 0);
|
||||
isPlayingMusic = false;
|
||||
super.setDead();
|
||||
|
||||
Reference in new issue
Block a user