mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-17 02:04:04 +00:00
Get rid of the string equality and convert a few more ID uses over.
This commit is contained in:
@@ -73,9 +73,7 @@ public class RegionIntersection extends AbstractRegion {
|
||||
super(world);
|
||||
checkNotNull(regions);
|
||||
checkArgument(!regions.isEmpty(), "empty region list is not supported");
|
||||
for (Region region : regions) {
|
||||
this.regions.add(region);
|
||||
}
|
||||
this.regions.addAll(regions);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -24,6 +24,7 @@ import com.sk89q.worldedit.EditSession;
|
||||
import com.sk89q.worldedit.MaxChangedBlocksException;
|
||||
import com.sk89q.worldedit.Vector;
|
||||
import com.sk89q.worldedit.blocks.BaseBlock;
|
||||
import com.sk89q.worldedit.blocks.type.BlockTypes;
|
||||
import com.sk89q.worldedit.patterns.Pattern;
|
||||
import com.sk89q.worldedit.regions.Region;
|
||||
|
||||
@@ -113,7 +114,7 @@ public abstract class ArbitraryShape {
|
||||
|
||||
case -2:
|
||||
// type and data 0
|
||||
return new BaseBlock(0, 0);
|
||||
return new BaseBlock(BlockTypes.AIR);
|
||||
}
|
||||
|
||||
return new BaseBlock(cacheEntry & 255, ((cacheEntry >> 8) - 1) & 15);
|
||||
|
Reference in New Issue
Block a user