mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-14 01:04:24 +00:00
Remove references to the now-broken BlockEntity#save(CompoundTag) method (#8235)
This commit is contained in:
1 parent
00fafb07ce
commit
75408c1a70
5 files changed
+8
-16
No files matched your search
@@ -54,9 +54,7 @@ public interface IForgeBlockEntity extends ICapabilitySerializable<CompoundTag>
|
||||
@Override
|
||||
default CompoundTag serializeNBT()
|
||||
{
|
||||
CompoundTag ret = new CompoundTag();
|
||||
self().save(ret);
|
||||
return ret;
|
||||
return self().saveWithFullMetadata();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -84,7 +84,7 @@ public class BlockSnapshot
|
||||
@Nullable
|
||||
private static CompoundTag getBlockEntityTag(@Nullable BlockEntity te)
|
||||
{
|
||||
return te == null ? null : te.save(new CompoundTag());
|
||||
return te == null ? null : te.saveWithFullMetadata();
|
||||
}
|
||||
|
||||
public BlockState getCurrentBlock()
|
||||
|
||||
@@ -52,11 +52,10 @@ public class TileFluidHandler extends BlockEntity
|
||||
}
|
||||
|
||||
@Override
|
||||
public CompoundTag save(CompoundTag tag)
|
||||
protected void saveAdditional(CompoundTag tag)
|
||||
{
|
||||
super.save(tag);
|
||||
super.saveAdditional(tag);
|
||||
tank.writeToNBT(tag);
|
||||
return tag;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user