network 2

This commit is contained in:
yuesha-yc 2021-10-23 22:20:54 -07:00
parent 43f3487777
commit 2ea394d23b
No known key found for this signature in database
GPG key ID: 009D79A802D4ED01
2 changed files with 3 additions and 1 deletions

View file

@ -131,7 +131,8 @@ public abstract class BoilerTileEntity extends TileEntity implements IHeatReceiv
heatreceived = 0;
consume = Math.min(this.input.drain(consume / 120, FluidAction.EXECUTE).getAmount() * 120, consume);
this.output.fill(new FluidStack(FluidRegistry.steam.get().getFluid(), consume), FluidAction.EXECUTE);
this.level.sendBlockUpdated(this.getBlockPos(), this.getBlockState(), this.getBlockState(), 3);
this.level.sendBlockUpdated(this.getBlockPos(), this.level.getBlockState(this.getBlockPos()), this.level.getBlockState(this.getBlockPos()), 3);
this.setChanged();
}
}

View file

@ -90,6 +90,7 @@ public abstract class BurnerTileEntity extends TileEntity implements ITickableTi
this.level.setBlockAndUpdate(this.worldPosition, state.setValue(BurnerBlock.LIT, true));
}
this.level.sendBlockUpdated(this.getBlockPos(), this.getBlockState(), this.getBlockState(), 3);
this.setChanged();
}
}