Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ljfa-ag committed Feb 20, 2015
1 parent 286a5ce commit 570bf28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/ljfa/tntutils/handlers/EntityJoinHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public void onEntityJoin(EntityJoinWorldEvent event) {
if(Config.disableTNT && ent instanceof EntityTNTPrimed) {
event.setCanceled(true);
event.world.spawnEntityInWorld(new EntityItem(event.world, ent.posX, ent.posY, ent.posZ, new ItemStack(Blocks.tnt)));
} else if(Config.disableTNTMinecart && ent instanceof EntityMinecartTNT) {
}
else if(Config.disableTNTMinecart && ent instanceof EntityMinecartTNT) {
event.setCanceled(true);
event.world.spawnEntityInWorld(new EntityItem(event.world, ent.posX, ent.posY, ent.posZ, new ItemStack(Blocks.tnt)));
event.world.spawnEntityInWorld(new EntityItem(event.world, ent.posX, ent.posY, ent.posZ, new ItemStack(Items.minecart)));
Expand Down

0 comments on commit 570bf28

Please sign in to comment.