Skip to content

Commit

Permalink
Fences here, get ye fences!
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Nov 11, 2015
1 parent 91d8711 commit 0f3332b
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -73,7 +73,10 @@ public void execute(final ScriptEntry scriptEntry) throws CommandExecutionExcept
}
else if (holderObject instanceof dLocation) {
holderLoc = ((dLocation) scriptEntry.getObject("holder"));
if (holderLoc.getBlock().getType() == Material.FENCE || holderLoc.getBlock().getType() == Material.NETHER_FENCE) {
if (holderLoc.getBlock().getType() == Material.FENCE || holderLoc.getBlock().getType() == Material.NETHER_FENCE
|| holderLoc.getBlock().getType() == Material.ACACIA_FENCE || holderLoc.getBlock().getType() == Material.BIRCH_FENCE
|| holderLoc.getBlock().getType() == Material.JUNGLE_FENCE || holderLoc.getBlock().getType() == Material.DARK_OAK_FENCE
|| holderLoc.getBlock().getType() == Material.SPRUCE_FENCE) {
Holder = holderLoc.getWorld().spawn(holderLoc, LeashHitch.class);
}
else {
Expand Down

0 comments on commit 0f3332b

Please sign in to comment.