Utils ported
This commit is contained in:
@@ -91,7 +91,7 @@ public class FacadeContainer implements IFacadeContainer {
|
||||
for (int x = 0; x < this.facades; x++) {
|
||||
if (this.storage.getFacade(x) != null) {
|
||||
final CompoundTag data = new CompoundTag();
|
||||
this.storage.getFacade(x).getItemStack().write(data);
|
||||
this.storage.getFacade(x).getItemStack().toTag(data);
|
||||
c.put("facade:" + x, data);
|
||||
}
|
||||
}
|
||||
@@ -135,7 +135,7 @@ public class FacadeContainer implements IFacadeContainer {
|
||||
|
||||
final CompoundTag t = c.getCompound("facade:" + x);
|
||||
if (t != null) {
|
||||
final ItemStack is = ItemStack.read(t);
|
||||
final ItemStack is = ItemStack.fromTag(t);
|
||||
if (!is.isEmpty()) {
|
||||
final net.minecraft.item.Item i = is.getItem();
|
||||
if (i instanceof IFacadeItem) {
|
||||
|
||||
Reference in New Issue
Block a user