Skip to content

Commit

Permalink
Minecarts spawn in the clicked (rail) block.
Browse files Browse the repository at this point in the history
  • Loading branch information
wizjany committed Jul 9, 2019
1 parent e4da479 commit de2b673
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1005,7 +1005,7 @@ private static <T extends Event & Cancellable> void handleBlockRightClick(T even
// Handle created Minecarts
if (item != null && Materials.isMinecart(item.getType())) {
// TODO: Give a more specific Minecart type
Events.fireToCancel(event, new SpawnEntityEvent(event, cause, placed.getLocation().add(0.5, 0, 0.5), EntityType.MINECART));
Events.fireToCancel(event, new SpawnEntityEvent(event, cause, clicked.getLocation().add(0.5, 0, 0.5), EntityType.MINECART));
return;
}

Expand Down

0 comments on commit de2b673

Please sign in to comment.