Dieser Commit ist enthalten in:
IronApollo 2019-02-03 09:22:10 -05:00
Ursprung 2d586ff53e
Commit 0e5847e1ce
5 geänderte Dateien mit 2 neuen und 20 gelöschten Zeilen

Datei anzeigen

@ -1939,14 +1939,6 @@ public class EditSession extends AbstractDelegateExtent implements HasFaweQueue,
final ForwardExtentCopy copy = new ForwardExtentCopy(EditSession.this, region, EditSession.this, to); final ForwardExtentCopy copy = new ForwardExtentCopy(EditSession.this, region, EditSession.this, to);
copy.setCopyingEntities(copyEntities); copy.setCopyingEntities(copyEntities);
copy.setCopyBiomes(copyBiomes); copy.setCopyBiomes(copyBiomes);
// public int stackCuboidRegion(Region region, BlockVector3 dir, int count, boolean copyAir) throws MaxChangedBlocksException {
// checkNotNull(region);
// checkNotNull(dir);
// checkArgument(count >= 1, "count >= 1 required");
//
// BlockVector3 size = region.getMaximumPoint().subtract(region.getMinimumPoint()).add(1, 1, 1);
// BlockVector3 to = region.getMinimumPoint();
// ForwardExtentCopy copy = new ForwardExtentCopy(this, region, this, to);
copy.setRepetitions(count); copy.setRepetitions(count);
copy.setTransform(new AffineTransform().translate(dir.multiply(size))); copy.setTransform(new AffineTransform().translate(dir.multiply(size)));
Mask sourceMask = getSourceMask(); Mask sourceMask = getSourceMask();

Datei anzeigen

@ -26,6 +26,7 @@ import com.sk89q.worldedit.function.pattern.BlockPattern;
import com.sk89q.worldedit.function.pattern.Pattern; import com.sk89q.worldedit.function.pattern.Pattern;
import com.sk89q.worldedit.function.pattern.RandomPattern; import com.sk89q.worldedit.function.pattern.RandomPattern;
import com.sk89q.worldedit.internal.registry.InputParser; import com.sk89q.worldedit.internal.registry.InputParser;
import com.sk89q.worldedit.world.block.BlockCategories;
import com.sk89q.worldedit.world.block.BlockCategory; import com.sk89q.worldedit.world.block.BlockCategory;
import com.sk89q.worldedit.world.block.BlockType; import com.sk89q.worldedit.world.block.BlockType;
@ -48,7 +49,7 @@ public class BlockCategoryPatternParser extends InputParser<Pattern> {
if(!input.startsWith("##")) { if(!input.startsWith("##")) {
return null; return null;
} }
BlockCategory category = BlockCategory.REGISTRY.get(input.substring(2).toLowerCase()); BlockCategory category = BlockCategories.get(input.substring(2).toLowerCase());
if (category == null) { if (category == null) {
throw new InputParseException("Unknown block tag: " + input.substring(2)); throw new InputParseException("Unknown block tag: " + input.substring(2));
} }

Datei anzeigen

@ -131,7 +131,6 @@ public class PasteBuilder {
if (ignoreAirBlocks) { if (ignoreAirBlocks) {
copy.setSourceMask(new ExistingBlockMask(clipboard)); copy.setSourceMask(new ExistingBlockMask(clipboard));
} }
System.out.println("PasteBuilder info: extent: " + extent.toString() + "; copy: " + copy + "; transform: " + transform);
return copy; return copy;
} }

Datei anzeigen

@ -36,9 +36,4 @@ public class NullBlockCategoryRegistry implements BlockCategoryRegistry {
public Set<BlockType> getAll(final Category<BlockType> category) { public Set<BlockType> getAll(final Category<BlockType> category) {
return Collections.emptySet(); return Collections.emptySet();
} }
@Override
public Set<String> getCategories(BlockType categorised) {
return Collections.emptySet();
}
} }

Datei anzeigen

@ -36,9 +36,4 @@ public class NullItemCategoryRegistry implements ItemCategoryRegistry {
public Set<ItemType> getAll(final Category<ItemType> category) { public Set<ItemType> getAll(final Category<ItemType> category) {
return Collections.emptySet(); return Collections.emptySet();
} }
@Override
public Set<String> getCategories(ItemType categorised) {
return Collections.emptySet();
}
} }