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