mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-10-20 16:37:39 +00:00
Fix the other instance of the neighbour deprecation warning
This commit is contained in:
@@ -43,7 +43,10 @@ final class BundledCapabilityProvider implements ICapabilityProvider
|
|||||||
if( capability == CAPABILITY_RECEIVER )
|
if( capability == CAPABILITY_RECEIVER )
|
||||||
{
|
{
|
||||||
IBundledReceiver receiver = this.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 );
|
return CAPABILITY_RECEIVER.cast( receiver );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user