mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-28 21:56:33 +01:00
Piston direction
This commit is contained in:
parent
0d9f998c6c
commit
8a8022e1a4
@ -275,9 +275,11 @@ public class ClipboardRemapper {
|
||||
mapPEtoPC.put(new BaseBlock(peId,5), new BaseBlock(pcId,3));
|
||||
}
|
||||
|
||||
for (int id : new int[] {29, 33}) {
|
||||
for (int id : new int[] {29, 33, 34}) {
|
||||
mapPEtoPC.put(new BaseBlock(id,3), new BaseBlock(id,2));
|
||||
mapPEtoPC.put(new BaseBlock(id,2), new BaseBlock(id,3));
|
||||
mapPEtoPC.put(new BaseBlock(id,10), new BaseBlock(id,11));
|
||||
mapPEtoPC.put(new BaseBlock(id,11), new BaseBlock(id,10));
|
||||
mapPEtoPC.put(new BaseBlock(id,5), new BaseBlock(id,4));
|
||||
mapPEtoPC.put(new BaseBlock(id,13), new BaseBlock(id,12));
|
||||
mapPEtoPC.put(new BaseBlock(id,4), new BaseBlock(id,5));
|
||||
|
@ -105,6 +105,11 @@ public final class NBTInputStream implements Closeable {
|
||||
return readTagPayload(type, 0);
|
||||
}
|
||||
|
||||
public Object readData() throws IOException {
|
||||
int type = is.readByte();
|
||||
return readDataPayload(type, 0);
|
||||
}
|
||||
|
||||
public void readNamedTagLazy(RunnableVal2<String, RunnableVal2> getReader) throws IOException {
|
||||
int type = is.readByte();
|
||||
String name = readNamedTagName(type);
|
||||
|
@ -442,6 +442,7 @@ public class MCAFile2LevelDB extends MapConverter {
|
||||
|
||||
CompoundTag tag = (CompoundTag) item.getValue().get("tag");
|
||||
if (tag != null) {
|
||||
Map<String, com.sk89q.jnbt.Tag> tagMap = ReflectionUtils.getMap(tag.getValue());
|
||||
List<CompoundTag> enchants = (List) tag.getList("ench");
|
||||
if (enchants != null) {
|
||||
for (CompoundTag ench : enchants) {
|
||||
@ -452,12 +453,14 @@ public class MCAFile2LevelDB extends MapConverter {
|
||||
if (id != null) value.put("lvl", new ShortTag(Short.parseShort(id)));
|
||||
}
|
||||
}
|
||||
CompoundTag tile = (CompoundTag) tagMap.get("BlockEntityTag");
|
||||
if (tile != null) {
|
||||
tagMap.putAll(tile.getValue());
|
||||
}
|
||||
}
|
||||
return item;
|
||||
}
|
||||
|
||||
// currentTick
|
||||
|
||||
private boolean transform(MCAChunk chunk, CompoundTag tag) {
|
||||
try {
|
||||
String id = tag.getString("id");
|
||||
|
Loading…
Reference in New Issue
Block a user