Fixed some fabric warnings
This commit is contained in:
parent
791db59c18
commit
8abcab32ec
4 changed files with 18 additions and 11 deletions
|
@ -35,14 +35,15 @@ public class BaseBarrelBlockEntity extends RandomizableContainerBlockEntity {
|
|||
public BaseBarrelBlockEntity(BlockPos blockPos, BlockState blockState) {
|
||||
this(BaseBlockEntities.BARREL, blockPos, blockState);
|
||||
}
|
||||
|
||||
public CompoundTag save(CompoundTag tag) {
|
||||
super.save(tag);
|
||||
|
||||
@Override
|
||||
public void saveAdditional(CompoundTag tag) {
|
||||
super.saveAdditional(tag);
|
||||
if (!this.trySaveLootTable(tag)) {
|
||||
ContainerHelper.saveAllItems(tag, this.inventory);
|
||||
}
|
||||
|
||||
return tag;
|
||||
//return tag;
|
||||
}
|
||||
|
||||
public void load(CompoundTag tag) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue