Sync tile entities with casters properly, and tidy up a few other related things

This commit is contained in:
Electroblob77
2020-05-24 22:09:09 +01:00
parent e17b5d2300
commit 94f4e680af
8 changed files with 35 additions and 26 deletions
@@ -89,7 +89,10 @@ public class ForestOfThorns extends Spell {
if(tileentity instanceof TileEntityPlayerSaveTimed){
((TileEntityPlayerSaveTimed)tileentity).setLifetime((int)(getProperty(DURATION).floatValue()
* modifiers.get(WizardryItems.duration_upgrade)));
if(caster != null) ((TileEntityPlayerSaveTimed)tileentity).setCaster(caster);
if(caster != null){
((TileEntityPlayerSaveTimed)tileentity).setCaster(caster);
}
((TileEntityPlayerSaveTimed)tileentity).sync();
}
}
}