mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
Fix: Plot#getOwner can be nullable, and redstone may be present on unowned plots (#3472)
This commit is contained in:
parent
92c54de5e9
commit
1f28bac955
@ -166,7 +166,7 @@ public class BlockEventListener implements Listener {
|
|||||||
}
|
}
|
||||||
if (Settings.Redstone.DISABLE_OFFLINE) {
|
if (Settings.Redstone.DISABLE_OFFLINE) {
|
||||||
boolean disable = false;
|
boolean disable = false;
|
||||||
if (!plot.getOwner().equals(DBFunc.SERVER)) {
|
if (!DBFunc.SERVER.equals(plot.getOwner())) {
|
||||||
if (plot.isMerged()) {
|
if (plot.isMerged()) {
|
||||||
disable = true;
|
disable = true;
|
||||||
for (UUID owner : plot.getOwners()) {
|
for (UUID owner : plot.getOwners()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user