Fix the redstone flag on roads

This commit is contained in:
Alexander Söderberg 2020-07-21 13:11:28 +02:00
parent 87a8ff742f
commit 73e3572c72
No known key found for this signature in database
GPG Key ID: C0207FF7EA146678

View File

@ -133,7 +133,7 @@ public class BlockEventListener implements Listener {
} }
Plot plot = location.getOwnedPlot(); Plot plot = location.getOwnedPlot();
if (plot == null) { if (plot == null) {
if (area.isRoadFlags() && area.getRoadFlag(RedstoneFlag.class)) { if (area.isRoadFlags() && !area.getRoadFlag(RedstoneFlag.class)) {
event.setNewCurrent(0); event.setNewCurrent(0);
} }
return; return;