mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 19:29:31 +00:00
Fix thorn chakram impact crash. Closes #59
This commit is contained in:
1 parent
ab3bc85f20
commit
a6d89e3d4d
1 file changed
+6
-4
@@ -111,10 +111,12 @@ public class EntityThornChakram extends EntityThrowable {
|
||||
if(noClip)
|
||||
return;
|
||||
|
||||
Block block = worldObj.getBlockState(pos.getBlockPos()).getBlock();
|
||||
worldObj.getTileEntity(pos.getBlockPos());
|
||||
if(block instanceof BlockBush || block instanceof BlockLeaves)
|
||||
return;
|
||||
if (pos.getBlockPos() != null) {
|
||||
Block block = worldObj.getBlockState(pos.getBlockPos()).getBlock();
|
||||
worldObj.getTileEntity(pos.getBlockPos());
|
||||
if(block instanceof BlockBush || block instanceof BlockLeaves)
|
||||
return;
|
||||
}
|
||||
|
||||
boolean fire = isFire();
|
||||
EntityLivingBase thrower = getThrower();
|
||||
|
||||
Reference in new issue
Block a user