This commit is contained in:
Jesse Boyd
2018-08-24 01:22:30 +10:00
parent 963d1192c2
commit dbd31ea347
14 changed files with 54 additions and 19 deletions

View File

@ -83,9 +83,7 @@ public class WorldEditCommands {
}
actor.printDebug("------------------------------------");
}
actor.print(BBC.getPrefix() + "WorldEdit " + WorldEdit.getVersion() + " by sk89q");
PlatformManager pm = we.getPlatformManager();
actor.printDebug("------------------------------------");
actor.printDebug("Platforms:");
for (Platform platform : pm.getPlatforms()) {
actor.printDebug(String.format(" - %s (%s)", platform.getPlatformName(), platform.getPlatformVersion()));

View File

@ -19,6 +19,7 @@
package com.sk89q.worldedit.extension.platform;
import com.sk89q.worldedit.NotABlockException;
import com.sk89q.worldedit.PlayerDirection;
import com.sk89q.worldedit.Vector;
import com.sk89q.worldedit.WorldEditException;
@ -394,7 +395,7 @@ public abstract class AbstractPlayerActor implements Actor, Player, Cloneable {
if (typeId.hasBlockType()) {
return typeId.getBlockType().getDefaultState();
} else {
return BlockTypes.AIR.getDefaultState();
throw new NotABlockException();
}
}

View File

@ -37,7 +37,7 @@ public abstract class AbstractLoggingExtent extends AbstractDelegateExtent {
*
* @param extent the extent
*/
protected AbstractLoggingExtent(Extent extent) {
public AbstractLoggingExtent(Extent extent) {
super(extent);
}

View File

@ -7,6 +7,7 @@ import com.boydti.fawe.util.MainUtil;
import com.boydti.fawe.util.StringMan;
import com.sk89q.worldedit.Vector;
import com.sk89q.worldedit.blocks.BaseBlock;
import com.sk89q.worldedit.extent.NullExtent;
import com.sk89q.worldedit.world.block.BlockState;
import com.sk89q.worldedit.extent.Extent;
import com.sk89q.worldedit.registry.state.AbstractProperty;
@ -40,6 +41,11 @@ public class BlockMask extends AbstractExtentMask {
this.bitSets = new BlockMaskBuilder().addBlocks(blocks).optimize().getBits();
}
public BlockMask() {
super(NullExtent.INSTANCE);
this.bitSets = new long[BlockTypes.size()][];
}
protected BlockMask(Extent extent, long[][] bitSets) {
super(extent);
this.bitSets = bitSets;