mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-29 16:46:45 +01:00
Fixed piston retract for pre 1.8
This commit is contained in:
parent
d0fe132c82
commit
76daef8440
@ -546,7 +546,7 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
|
|||||||
}
|
}
|
||||||
Plot plot = MainUtil.getPlot(loc);
|
Plot plot = MainUtil.getPlot(loc);
|
||||||
if (plot != null) {
|
if (plot != null) {
|
||||||
for (final Block b : event.getBlocks()) {
|
final Block b = event.getRetractLocation().getBlock();
|
||||||
Location bloc = BukkitUtil.getLocation(b.getLocation());
|
Location bloc = BukkitUtil.getLocation(b.getLocation());
|
||||||
Plot newPlot = MainUtil.getPlot(bloc);
|
Plot newPlot = MainUtil.getPlot(bloc);
|
||||||
if (!plot.equals(newPlot)) {
|
if (!plot.equals(newPlot)) {
|
||||||
@ -555,7 +555,6 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true)
|
||||||
public static void onStructureGrow(final StructureGrowEvent e) {
|
public static void onStructureGrow(final StructureGrowEvent e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user