mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2025-01-15 20:51:26 +01:00
Fixed standing on top of portal and warping
This commit is contained in:
parent
4b24440ff3
commit
b201c76e97
@ -199,6 +199,7 @@ public class Listeners implements Listener {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@EventHandler
|
||||
public void onDamEvent(EntityDamageEvent event) {
|
||||
if (!Portal.portalsActive) {
|
||||
@ -229,7 +230,8 @@ public class Listeners implements Listener {
|
||||
|
||||
}
|
||||
|
||||
|
||||
// https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/player/PlayerTeleportEvent.TeleportCause.html
|
||||
// Also listen to this possibly.
|
||||
@SuppressWarnings("deprecation")
|
||||
@EventHandler
|
||||
public void onPortalEvent(PlayerPortalEvent event) {
|
||||
|
Loading…
Reference in New Issue
Block a user