Skip to content
Permalink
Browse files

Minecarts spawn in the clicked (rail) block.

  • Loading branch information...
wizjany committed Jul 9, 2019
1 parent e4da479 commit de2b673902faa78d912e5dfa18029e786df559ea
@@ -1005,7 +1005,7 @@ public void onBlockExplode(BlockExplodeEvent event) {
// 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;
}

0 comments on commit de2b673

Please sign in to comment.
You can’t perform that action at this time.