Minecarts spawn in the clicked (rail) block.

This commit is contained in:
wizjany 2019-07-09 07:47:54 -04:00
parent 63209d1174
commit 1f362bef59

View File

@ -989,7 +989,7 @@ private static <T extends Event & Cancellable> void handleBlockRightClick(T even
if (entityType == null) {
entityType = EntityType.MINECART;
}
Events.fireToCancel(event, new SpawnEntityEvent(event, cause, placed.getLocation().add(0.5, 0, 0.5), entityType));
Events.fireToCancel(event, new SpawnEntityEvent(event, cause, clicked.getLocation().add(0.5, 0, 0.5), entityType));
return;
}