Open source release #3
@ -37,7 +37,6 @@ public class PortalDestructListener extends BasicListener {
|
||||
double z = e.getLocation().getZ();
|
||||
double distRed = Math.abs(Config.RedPortalZ + 0.5 - z);
|
||||
double distBlue = Math.abs(Config.BluePortalZ + 0.5 - z);
|
||||
System.out.println(distBlue + " " + distRed);
|
||||
if(distRed < 2 || distBlue < 2)
|
||||
e.setCancelled(true);
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren