geforkt von Mirrors/Paper
[Bleeding] Make sure to close any open inventory windows before teleporting. Thanks md_5.
Dieser Commit ist enthalten in:
Ursprung
1d04305cea
Commit
1d4a9e1df5
@ -312,6 +312,10 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||||||
|
|
||||||
// Check if the fromWorld and toWorld are the same.
|
// Check if the fromWorld and toWorld are the same.
|
||||||
if (fromWorld == toWorld) {
|
if (fromWorld == toWorld) {
|
||||||
|
// Close any foreign inventory
|
||||||
|
if (getHandle().activeContainer != getHandle().defaultContainer){
|
||||||
|
getHandle().closeInventory();
|
||||||
|
}
|
||||||
entity.netServerHandler.teleport(to);
|
entity.netServerHandler.teleport(to);
|
||||||
} else {
|
} else {
|
||||||
server.getHandle().moveToWorld(entity, toWorld.dimension, true, to);
|
server.getHandle().moveToWorld(entity, toWorld.dimension, true, to);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren