mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-07-07 20:34:25 +00:00
Use clearRemoved rather than onLoad
Latter is broken on Forge right now.
This commit is contained in:
parent
0a8e427c61
commit
4d591c600c
|
@ -53,7 +53,7 @@ private class CableElement extends WiredModemElement
|
||||||
@Override
|
@Override
|
||||||
public Level getLevel()
|
public Level getLevel()
|
||||||
{
|
{
|
||||||
return this.getLevel();
|
return TileCable.this.getLevel();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nonnull
|
@Nonnull
|
||||||
|
@ -166,9 +166,9 @@ public void invalidateCaps()
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onLoad()
|
public void clearRemoved()
|
||||||
{
|
{
|
||||||
super.onLoad();
|
super.clearRemoved(); // TODO: Replace with onLoad
|
||||||
TickScheduler.schedule( this );
|
TickScheduler.schedule( this );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -251,9 +251,9 @@ private void updateBlockState()
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onLoad()
|
public void clearRemoved()
|
||||||
{
|
{
|
||||||
super.onLoad();
|
super.clearRemoved(); // TODO: Replace with onLoad
|
||||||
TickScheduler.schedule( this );
|
TickScheduler.schedule( this );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -80,9 +80,9 @@ public TileWirelessModem( BlockEntityType<? extends TileWirelessModem> type, Blo
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onLoad()
|
public void clearRemoved()
|
||||||
{
|
{
|
||||||
super.onLoad();
|
super.clearRemoved(); // TODO: Replace with onLoad
|
||||||
TickScheduler.schedule( this );
|
TickScheduler.schedule( this );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user