mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 02:03:59 +00:00
Fix op spigot jig exit
This commit is contained in:
parent
ad323ebf2b
commit
6cb97d067e
@ -47,6 +47,7 @@ import org.bukkit.util.Vector;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
|
||||
public class JigsawEditor implements Listener {
|
||||
public static final KMap<Player, JigsawEditor> editors = new KMap<>();
|
||||
@ -162,9 +163,15 @@ public class JigsawEditor implements Listener {
|
||||
public void exit() {
|
||||
J.car(ticker);
|
||||
Iris.instance.unregisterListener(this);
|
||||
object.unplaceCenterY(origin);
|
||||
try {
|
||||
J.sfut(() -> {
|
||||
object.unplaceCenterY(origin);
|
||||
falling.v().forEach(Runnable::run);
|
||||
}).get();
|
||||
} catch (InterruptedException | ExecutionException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
editors.remove(player);
|
||||
falling.v().forEach(Runnable::run);
|
||||
}
|
||||
|
||||
public void onTick() {
|
||||
|
@ -20,6 +20,7 @@ package com.volmit.iris.engine.jigsaw;
|
||||
|
||||
import com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap;
|
||||
import com.volmit.iris.Iris;
|
||||
import com.volmit.iris.core.edit.JigsawEditor;
|
||||
import com.volmit.iris.core.loader.IrisData;
|
||||
import com.volmit.iris.engine.data.cache.Cache;
|
||||
import com.volmit.iris.engine.object.IObjectPlacer;
|
||||
|
Loading…
x
Reference in New Issue
Block a user