mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-01 23:47:21 +00:00
fix modern tile states not applying properly
This commit is contained in:
parent
ece905ec6e
commit
4796fe98cb
@ -35,7 +35,6 @@ import java.io.IOException;
|
|||||||
|
|
||||||
@SuppressWarnings("ALL")
|
@SuppressWarnings("ALL")
|
||||||
@Getter
|
@Getter
|
||||||
@ToString
|
|
||||||
@EqualsAndHashCode
|
@EqualsAndHashCode
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@NoArgsConstructor(access = AccessLevel.PROTECTED)
|
@NoArgsConstructor(access = AccessLevel.PROTECTED)
|
||||||
@ -137,4 +136,9 @@ public class TileData implements Cloneable {
|
|||||||
clone.properties = properties.copy(); //TODO make a deep copy
|
clone.properties = properties.copy(); //TODO make a deep copy
|
||||||
return clone;
|
return clone;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return material.getKey() + gson.toJson(properties);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -214,7 +214,7 @@ public class NMSBinding implements INMSBinding {
|
|||||||
.newBlockEntity(blockPos, state);
|
.newBlockEntity(blockPos, state);
|
||||||
}
|
}
|
||||||
var accessor = new BlockDataAccessor(blockEntity, blockPos);
|
var accessor = new BlockDataAccessor(blockEntity, blockPos);
|
||||||
accessor.setData(tag.merge(accessor.getData()));
|
accessor.setData(accessor.getData().merge(tag));
|
||||||
}
|
}
|
||||||
|
|
||||||
private Tag convertToTag(Object object, int depth, int maxDepth) {
|
private Tag convertToTag(Object object, int depth, int maxDepth) {
|
||||||
|
@ -212,7 +212,7 @@ public class NMSBinding implements INMSBinding {
|
|||||||
.newBlockEntity(blockPos, state);
|
.newBlockEntity(blockPos, state);
|
||||||
}
|
}
|
||||||
var accessor = new BlockDataAccessor(blockEntity, blockPos);
|
var accessor = new BlockDataAccessor(blockEntity, blockPos);
|
||||||
accessor.setData(tag.merge(accessor.getData()));
|
accessor.setData(accessor.getData().merge(tag));
|
||||||
}
|
}
|
||||||
|
|
||||||
private Tag convertToTag(Object object, int depth, int maxDepth) {
|
private Tag convertToTag(Object object, int depth, int maxDepth) {
|
||||||
|
@ -212,7 +212,7 @@ public class NMSBinding implements INMSBinding {
|
|||||||
.newBlockEntity(blockPos, state);
|
.newBlockEntity(blockPos, state);
|
||||||
}
|
}
|
||||||
var accessor = new BlockDataAccessor(blockEntity, blockPos);
|
var accessor = new BlockDataAccessor(blockEntity, blockPos);
|
||||||
accessor.setData(tag.merge(accessor.getData()));
|
accessor.setData(accessor.getData().merge(tag));
|
||||||
}
|
}
|
||||||
|
|
||||||
private Tag convertToTag(Object object, int depth, int maxDepth) {
|
private Tag convertToTag(Object object, int depth, int maxDepth) {
|
||||||
|
@ -216,7 +216,7 @@ public class NMSBinding implements INMSBinding {
|
|||||||
.newBlockEntity(blockPos, state);
|
.newBlockEntity(blockPos, state);
|
||||||
}
|
}
|
||||||
var accessor = new BlockDataAccessor(blockEntity, blockPos);
|
var accessor = new BlockDataAccessor(blockEntity, blockPos);
|
||||||
accessor.setData(tag.merge(accessor.getData()));
|
accessor.setData(accessor.getData().merge(tag));
|
||||||
}
|
}
|
||||||
|
|
||||||
private Tag convertToTag(Object object, int depth, int maxDepth) {
|
private Tag convertToTag(Object object, int depth, int maxDepth) {
|
||||||
|
@ -215,7 +215,7 @@ public class NMSBinding implements INMSBinding {
|
|||||||
.newBlockEntity(blockPos, state);
|
.newBlockEntity(blockPos, state);
|
||||||
}
|
}
|
||||||
var accessor = new BlockDataAccessor(blockEntity, blockPos);
|
var accessor = new BlockDataAccessor(blockEntity, blockPos);
|
||||||
accessor.setData(tag.merge(accessor.getData()));
|
accessor.setData(accessor.getData().merge(tag));
|
||||||
}
|
}
|
||||||
|
|
||||||
private Tag convertToTag(Object object, int depth, int maxDepth) {
|
private Tag convertToTag(Object object, int depth, int maxDepth) {
|
||||||
|
@ -202,7 +202,7 @@ public class NMSBinding implements INMSBinding {
|
|||||||
.newBlockEntity(blockPos, state);
|
.newBlockEntity(blockPos, state);
|
||||||
}
|
}
|
||||||
var accessor = new BlockDataAccessor(blockEntity, blockPos);
|
var accessor = new BlockDataAccessor(blockEntity, blockPos);
|
||||||
accessor.setData(tag.merge(accessor.getData()));
|
accessor.setData(accessor.getData().merge(tag));
|
||||||
}
|
}
|
||||||
|
|
||||||
private Tag convertToTag(Object object, int depth, int maxDepth) {
|
private Tag convertToTag(Object object, int depth, int maxDepth) {
|
||||||
|
@ -201,7 +201,7 @@ public class NMSBinding implements INMSBinding {
|
|||||||
.newBlockEntity(blockPos, state);
|
.newBlockEntity(blockPos, state);
|
||||||
}
|
}
|
||||||
var accessor = new BlockDataAccessor(blockEntity, blockPos);
|
var accessor = new BlockDataAccessor(blockEntity, blockPos);
|
||||||
accessor.setData(tag.merge(accessor.getData()));
|
accessor.setData(accessor.getData().merge(tag));
|
||||||
}
|
}
|
||||||
|
|
||||||
private Tag convertToTag(Object object, int depth, int maxDepth) {
|
private Tag convertToTag(Object object, int depth, int maxDepth) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user