Causes only track blocks, not locations.

This commit is contained in:
wizjany 2019-09-26 20:24:11 -04:00
parent cb9ab3a7b2
commit d07f95952d

View File

@ -249,7 +249,7 @@ public void onStructureGrowEvent(StructureGrowEvent event) {
Player player = event.getPlayer();
Events.fireBulkEventToCancel(event, new PlaceBlockEvent(event,
create(player == null ? event.getLocation() : player),
create(player == null ? event.getLocation().getBlock() : player),
event.getLocation().getWorld(), event.getBlocks()));
if (!event.isCancelled() && event.getBlocks().size() != originalCount) {