3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-07 12:00:07 +01:00

Changes to fix some PlotSquared compatibility issues, plus fix block Mask parsing

Dieser Commit ist enthalten in:
IronApollo 2019-02-27 08:09:04 -05:00
Ursprung 24fbc86cdd
Commit 3ffb5ff00d
6 geänderte Dateien mit 11 neuen und 14 gelöschten Zeilen

Datei anzeigen

@ -189,7 +189,6 @@ public class WorldEditPlugin extends JavaPlugin //implements TabCompleter
}
}
}
System.out.println("finished enable");
}
private void rename() {

Datei anzeigen

@ -213,10 +213,10 @@ public class Fawe {
try {
transformParser = new DefaultTransformParser(getWorldEdit());
visualQueue = new VisualQueue(3);
// WEManager.IMP.managers.addAll(Fawe.this.IMP.getMaskManagers());
// WEManager.IMP.managers.add(new PlotSquaredFeature());
// Fawe.debug("Plugin 'PlotSquared' found. Using it now.");
} catch (Throwable e) {e.printStackTrace();}
WEManager.IMP.managers.addAll(Fawe.this.IMP.getMaskManagers());
WEManager.IMP.managers.add(new PlotSquaredFeature());
Fawe.debug("Plugin 'PlotSquared' found. Using it now.");
} catch (Throwable e) {}
}, 0);
TaskManager.IMP.repeat(timer, 1);

Datei anzeigen

@ -33,7 +33,7 @@ public class PlotSquaredFeature extends FaweMaskManager {
public PlotSquaredFeature() {
super("PlotSquared");
Fawe.debug("Optimizing PlotSquared");
PlotSquared.get().worldedit = null;
// PlotSquared.get().worldedit = null;
setupBlockQueue();
setupSchematicHandler();
setupChunkManager();

Datei anzeigen

@ -542,10 +542,9 @@ public class EditSession extends AbstractDelegateExtent implements HasFaweQueue,
return new NullExtent(extent, BBC.WORLDEDIT_CANCEL_REASON_MANUAL);
}
final Extent toReturn = event.getExtent();
// if(toReturn instanceof com.sk89q.worldedit.extent.NullExtent) {
// return new NullExtent(toReturn, null);
// return new AbstractDelegateExtent(toReturn);
// });
if(toReturn instanceof com.sk89q.worldedit.extent.NullExtent) {
return new NullExtent(toReturn, null);
}
if (!(toReturn instanceof AbstractDelegateExtent)) {
Fawe.debug("Extent " + toReturn + " must be AbstractDelegateExtent");
return extent;

Datei anzeigen

@ -335,8 +335,7 @@ public class RegionCommands extends MethodCommands {
@Logging(REGION)
public void set(FawePlayer player, LocalSession session, EditSession editSession, @Selection Region selection, Pattern to, CommandContext context) throws WorldEditException {
player.checkConfirmationRegion(() -> {
int affected;
affected = editSession.setBlocks(selection, to);
int affected = editSession.setBlocks(selection, to);
if (affected != 0) {
BBC.OPERATION.send(player, affected);
if (!player.hasPermission("fawe.tips"))

Datei anzeigen

@ -213,12 +213,12 @@ public class DefaultMaskParser extends FaweParser<Mask> {
throw new InputParseException(e2.getMessage());
}
});
}
}
if (pe.and) {
masks.add(new ArrayList<>());
}
masks.get(masks.size() - 1).add(mask);
}
}
} catch (InputParseException rethrow) {
throw rethrow;
@ -240,7 +240,7 @@ public class DefaultMaskParser extends FaweParser<Mask> {
return new MaskIntersection(maskUnions);
} else {
return null;
}
}
}
}