Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-19 09:20:08 +01:00
Cleanup
Dieser Commit ist enthalten in:
Ursprung
6f68b5e292
Commit
8d211cfe38
@ -104,7 +104,7 @@ public class PaperweightServerLevelDelegateProxy implements InvocationHandler {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
BlockEntity newEntity = tileEntity.getType().create(blockPos, getBlockState(blockPos));
|
BlockEntity newEntity = tileEntity.getType().create(blockPos, getBlockState(blockPos));
|
||||||
newEntity.load((CompoundTag) adapter.fromNativeBinary(this.editSession.getFullBlock(
|
newEntity.load((CompoundTag) adapter.fromNativeLin(this.editSession.getFullBlock(
|
||||||
blockPos.getX(),
|
blockPos.getX(),
|
||||||
blockPos.getY(),
|
blockPos.getY(),
|
||||||
blockPos.getZ()
|
blockPos.getZ()
|
||||||
|
@ -104,7 +104,7 @@ public class PaperweightServerLevelDelegateProxy implements InvocationHandler {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
BlockEntity newEntity = tileEntity.getType().create(blockPos, getBlockState(blockPos));
|
BlockEntity newEntity = tileEntity.getType().create(blockPos, getBlockState(blockPos));
|
||||||
newEntity.load((CompoundTag) adapter.fromNativeBinary(this.editSession.getFullBlock(
|
newEntity.load((CompoundTag) adapter.fromNativeLin(this.editSession.getFullBlock(
|
||||||
blockPos.getX(),
|
blockPos.getX(),
|
||||||
blockPos.getY(),
|
blockPos.getY(),
|
||||||
blockPos.getZ()
|
blockPos.getZ()
|
||||||
|
@ -104,7 +104,7 @@ public class PaperweightServerLevelDelegateProxy implements InvocationHandler {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
BlockEntity newEntity = tileEntity.getType().create(blockPos, getBlockState(blockPos));
|
BlockEntity newEntity = tileEntity.getType().create(blockPos, getBlockState(blockPos));
|
||||||
newEntity.load((CompoundTag) adapter.fromNativeBinary(this.editSession.getFullBlock(
|
newEntity.load((CompoundTag) adapter.fromNativeLin(this.editSession.getFullBlock(
|
||||||
blockPos.getX(),
|
blockPos.getX(),
|
||||||
blockPos.getY(),
|
blockPos.getY(),
|
||||||
blockPos.getZ()
|
blockPos.getZ()
|
||||||
|
@ -104,7 +104,7 @@ public class PaperweightServerLevelDelegateProxy implements InvocationHandler {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
BlockEntity newEntity = tileEntity.getType().create(blockPos, getBlockState(blockPos));
|
BlockEntity newEntity = tileEntity.getType().create(blockPos, getBlockState(blockPos));
|
||||||
newEntity.load((CompoundTag) adapter.fromNativeBinary(this.editSession.getFullBlock(
|
newEntity.load((CompoundTag) adapter.fromNativeLin(this.editSession.getFullBlock(
|
||||||
blockPos.getX(),
|
blockPos.getX(),
|
||||||
blockPos.getY(),
|
blockPos.getY(),
|
||||||
blockPos.getZ()
|
blockPos.getZ()
|
||||||
|
@ -105,7 +105,7 @@ public class PaperweightServerLevelDelegateProxy implements InvocationHandler {
|
|||||||
}
|
}
|
||||||
BlockEntity newEntity = tileEntity.getType().create(blockPos, getBlockState(blockPos));
|
BlockEntity newEntity = tileEntity.getType().create(blockPos, getBlockState(blockPos));
|
||||||
newEntity.loadWithComponents(
|
newEntity.loadWithComponents(
|
||||||
(CompoundTag) adapter.fromNativeBinary(this.editSession.getFullBlock(
|
(CompoundTag) adapter.fromNativeLin(this.editSession.getFullBlock(
|
||||||
blockPos.getX(),
|
blockPos.getX(),
|
||||||
blockPos.getY(),
|
blockPos.getY(),
|
||||||
blockPos.getZ()
|
blockPos.getZ()
|
||||||
|
@ -24,13 +24,13 @@ import com.sk89q.worldedit.math.Vector3;
|
|||||||
import com.sk89q.worldedit.regions.Region;
|
import com.sk89q.worldedit.regions.Region;
|
||||||
import com.sk89q.worldedit.registry.state.Property;
|
import com.sk89q.worldedit.registry.state.Property;
|
||||||
import com.sk89q.worldedit.util.Direction;
|
import com.sk89q.worldedit.util.Direction;
|
||||||
import com.sk89q.worldedit.util.nbt.CompoundBinaryTag;
|
|
||||||
import com.sk89q.worldedit.world.block.BaseBlock;
|
import com.sk89q.worldedit.world.block.BaseBlock;
|
||||||
import com.sk89q.worldedit.world.block.BlockCategories;
|
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.BlockState;
|
import com.sk89q.worldedit.world.block.BlockState;
|
||||||
import com.sk89q.worldedit.world.block.BlockTypes;
|
import com.sk89q.worldedit.world.block.BlockTypes;
|
||||||
import com.sk89q.worldedit.world.block.BlockTypesCache;
|
import com.sk89q.worldedit.world.block.BlockTypesCache;
|
||||||
|
import org.enginehub.linbus.tree.LinCompoundTag;
|
||||||
|
|
||||||
import java.util.EnumSet;
|
import java.util.EnumSet;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -472,9 +472,9 @@ public abstract class PlacementStateProcessor extends AbstractDelegateExtent imp
|
|||||||
if (block.getOrdinalChar() != newOrdinal) {
|
if (block.getOrdinalChar() != newOrdinal) {
|
||||||
BlockState newState = BlockTypesCache.states[newOrdinal];
|
BlockState newState = BlockTypesCache.states[newOrdinal];
|
||||||
orDefault.setBlock(set.x(), set.y(), set.z(), newState);
|
orDefault.setBlock(set.x(), set.y(), set.z(), newState);
|
||||||
CompoundBinaryTag nbt = block.getNbt();
|
CompoundTag nbt = block.getNbtData();
|
||||||
if (nbt != null && newState.getBlockType() == block.getBlockType()) {
|
if (nbt != null && newState.getBlockType() == block.getBlockType()) {
|
||||||
orDefault.setTile(set.x(), set.y(), set.z(), (CompoundTag) nbt.asBinaryTag());
|
orDefault.setTile(set.x(), set.y(), set.z(), nbt);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -497,7 +497,7 @@ public abstract class PlacementStateProcessor extends AbstractDelegateExtent imp
|
|||||||
char newOrdinal = getBlockOrdinal(position.x(), position.y(), position.z(), block.toBlockState());
|
char newOrdinal = getBlockOrdinal(position.x(), position.y(), position.z(), block.toBlockState());
|
||||||
if (block.getOrdinalChar() != newOrdinal) {
|
if (block.getOrdinalChar() != newOrdinal) {
|
||||||
BlockState state = BlockTypesCache.states[newOrdinal];
|
BlockState state = BlockTypesCache.states[newOrdinal];
|
||||||
CompoundBinaryTag nbt = block.getNbt();
|
LinCompoundTag nbt = block.getNbt();
|
||||||
if (nbt != null && state.getBlockType() == block.getBlockType()) {
|
if (nbt != null && state.getBlockType() == block.getBlockType()) {
|
||||||
state.toBaseBlock(nbt);
|
state.toBaseBlock(nbt);
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren