1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-07-04 19:13:21 +00:00

Use clearRemoved rather than onLoad

Latter is broken on Forge right now.
This commit is contained in:
Jonathan Coates 2021-08-20 21:48:34 +01:00
parent 0a8e427c61
commit 4d591c600c
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06
3 changed files with 7 additions and 7 deletions

View File

@ -53,7 +53,7 @@ private class CableElement extends WiredModemElement
@Override
public Level getLevel()
{
return this.getLevel();
return TileCable.this.getLevel();
}
@Nonnull
@ -166,9 +166,9 @@ public void invalidateCaps()
}
@Override
public void onLoad()
public void clearRemoved()
{
super.onLoad();
super.clearRemoved(); // TODO: Replace with onLoad
TickScheduler.schedule( this );
}

View File

@ -251,9 +251,9 @@ private void updateBlockState()
}
@Override
public void onLoad()
public void clearRemoved()
{
super.onLoad();
super.clearRemoved(); // TODO: Replace with onLoad
TickScheduler.schedule( this );
}

View File

@ -80,9 +80,9 @@ public TileWirelessModem( BlockEntityType<? extends TileWirelessModem> type, Blo
}
@Override
public void onLoad()
public void clearRemoved()
{
super.onLoad();
super.clearRemoved(); // TODO: Replace with onLoad
TickScheduler.schedule( this );
}