|
|
@ -69,8 +69,7 @@ public class OnCustomPlayerMove implements CustomPlayerMoveEventListener {
|
|
|
|
// Get first partner thats not our current-block
|
|
|
|
// Get first partner thats not our current-block
|
|
|
|
LinkedBeaconTeleporterBlock lbtBlockPartner = null;
|
|
|
|
LinkedBeaconTeleporterBlock lbtBlockPartner = null;
|
|
|
|
for(LinkedBeaconTeleporter lbtBlockTmp: lbtBlock.linkedBeaconTeleporters()){
|
|
|
|
for(LinkedBeaconTeleporter lbtBlockTmp: lbtBlock.linkedBeaconTeleporters()){
|
|
|
|
// Upcast as linked-Teleporters are only blocks anyways
|
|
|
|
if(lbtBlockTmp != lbtBlock){
|
|
|
|
if((LinkedBeaconTeleporterBlock)lbtBlockTmp != lbtBlock){
|
|
|
|
|
|
|
|
lbtBlockPartner = (LinkedBeaconTeleporterBlock)lbtBlockTmp;
|
|
|
|
lbtBlockPartner = (LinkedBeaconTeleporterBlock)lbtBlockTmp;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|