mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Ascync tp is disabled for now
Ascync TP is done in 1.18 already, and this is just a dirty fix to stop crashing/ lol
This commit is contained in:
parent
99713ac964
commit
15bc964fcc
@ -69,24 +69,31 @@ public abstract class EngineAssignedWorldManager extends EngineAssignedComponent
|
|||||||
|
|
||||||
protected AtomicBoolean ignoreTP = new AtomicBoolean(false);
|
protected AtomicBoolean ignoreTP = new AtomicBoolean(false);
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
// @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
||||||
public void on(PlayerTeleportEvent e) {
|
// public void on(PlayerTeleportEvent e) {
|
||||||
if(ignoreTP.get()) {
|
// if(ignoreTP.get()) {
|
||||||
return;
|
// System.out.println("IgTP1");
|
||||||
}
|
// return;
|
||||||
|
// }
|
||||||
if(!PaperLib.isPaper() || e.getTo() == null) {
|
//
|
||||||
return;
|
// if(!PaperLib.isPaper() || e.getTo() == null) {
|
||||||
}
|
// System.out.println("IgTP2");
|
||||||
|
//
|
||||||
try {
|
//// return;
|
||||||
if(e.getTo().getWorld().equals(getTarget().getWorld().realWorld())) {
|
// }
|
||||||
getEngine().getWorldManager().teleportAsync(e);
|
//
|
||||||
}
|
//// try {
|
||||||
} catch(Throwable ex) {
|
//// System.out.println("IgTP3");
|
||||||
|
////
|
||||||
}
|
//// if(e.getTo().getWorld().equals(getTarget().getWorld().realWorld())) {
|
||||||
}
|
//// System.out.println("IgTP4");
|
||||||
|
////
|
||||||
|
//// getEngine().getWorldManager().teleportAsync(e);
|
||||||
|
//// }
|
||||||
|
//// } catch(Throwable ex) {
|
||||||
|
////
|
||||||
|
//// }
|
||||||
|
// }
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void on(WorldSaveEvent e) {
|
public void on(WorldSaveEvent e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user