Skip to content

Commit

Permalink
Fix Cables emitting smoke on first tick (#2288)
Browse files Browse the repository at this point in the history
  • Loading branch information
YoungOnionMC authored Nov 8, 2024
1 parent c74f36d commit 70aa509
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ private void uninsulate() {
public void setTemperature(int temperature) {
this.temperature = temperature;
level.getLightEngine().checkBlock(worldPosition);
if (!level.isClientSide) {
if (!level.isClientSide && temperature >= meltTemp) {
var facing = Direction.UP;
float xPos = facing.getStepX() * 0.76F + worldPosition.getX() + 0.25F;
float yPos = facing.getStepY() * 0.76F + worldPosition.getY() + 0.25F;
Expand Down

0 comments on commit 70aa509

Please sign in to comment.