1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-06-25 22:53:22 +00:00

Fix the other instance of the neighbour deprecation warning

This commit is contained in:
SquidDev 2019-02-20 18:37:22 +00:00
parent 46fa798797
commit 6bd11a5e4a

View File

@ -43,7 +43,10 @@ public <T> T getCapability( @Nonnull Capability<T> capability, @Nullable EnumFac
if( capability == CAPABILITY_RECEIVER )
{
IBundledReceiver receiver = this.receiver;
if( receiver == null ) receiver = this.receiver = tile::onNeighbourChange;
if( receiver == null )
{
receiver = this.receiver = () -> tile.onNeighbourChange( tile.getPos().offset( side ) );
}
return CAPABILITY_RECEIVER.cast( receiver );
}