mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-11-16 08:50:51 +01:00
Preserve vanilla drop behavior when tile-drop flag is applied (#4793)
make tile-drop flag respect vanilla willDrop=false
This commit is contained in:
@@ -104,6 +104,10 @@ public class PaperListener implements Listener {
|
||||
}
|
||||
Plot plot = area.getPlot(location);
|
||||
if (plot != null) {
|
||||
// Prevent dropping blocks which normally would not be dropped.
|
||||
if (!event.willDrop()) {
|
||||
return;
|
||||
}
|
||||
event.setWillDrop(plot.getFlag(TileDropFlag.class));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user