mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-23 21:49:50 +00:00
Some entities
This commit is contained in:
1 parent
3b8926c24b
commit
6fb9b0101e
19 files changed
+93
-103
No files matched your search
@@ -177,7 +177,7 @@ public class EntityMagicMissile extends EntityThrowable {
|
||||
|
||||
@Override
|
||||
protected void onImpact(MovingObjectPosition pos) {
|
||||
Block block = worldObj.getBlock(pos.blockX, pos.blockY, pos.blockZ);
|
||||
Block block = worldObj.getBlockState(pos.getBlockPos()).getBlock();
|
||||
|
||||
if(!(block instanceof BlockBush) && !(block instanceof BlockLeaves) && (pos.entityHit == null || getTargetEntity() == pos.entityHit))
|
||||
setDead();
|
||||
|
||||
Reference in new issue
Block a user