Skip to content

Commit

Permalink
Update dEntity.interact_with mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
Morphan1 committed Mar 2, 2016
1 parent ad1904f commit 2600697
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/net/aufdemrand/denizen/objects/dEntity.java
Expand Up @@ -2659,12 +2659,13 @@ public void adjust(Mechanism mechanism) {
new BlockPosition(interactLocation.getBlockX(),
interactLocation.getBlockY(),
interactLocation.getBlockZ());
// TODO: 1.9
/* Block.getById(interactLocation.getBlock().getType().getId())

Block.getById(interactLocation.getBlock().getType().getId())
.interact(((CraftWorld) interactLocation.getWorld()).getHandle(),
pos,
((CraftWorld) interactLocation.getWorld()).getHandle().getType(pos),
craftPlayer != null ? craftPlayer.getHandle() : null, EnumDirection.NORTH, 0f, 0f, 0f);*/
craftPlayer != null ? craftPlayer.getHandle() : null, EnumHand.MAIN_HAND, null,
EnumDirection.NORTH, 0f, 0f, 0f);
}

// <--[mechanism]
Expand Down

0 comments on commit 2600697

Please sign in to comment.