mirror of
https://hub.spigotmc.org/stash/scm/spigot/spigot.git
synced 2026-11-24 19:29:43 -05:00
World is null when a chunk is first loaded
This commit is contained in:
1 parent
13716d9d5e
commit
eb39b4729c
2 files changed
+9
-7
No files matched your search
@@ -1,4 +1,4 @@
|
||||
From 9cbacb9bfdb3b1b1fc12863a57c70d52a0e5be62 Mon Sep 17 00:00:00 2001
|
||||
From f1c802df867d10b73aece03fc7dc5b17d3e13b48 Mon Sep 17 00:00:00 2001
|
||||
From: Thinkofdeath <thethinkofdeath@gmail.com>
|
||||
Date: Sun, 20 Apr 2014 13:18:55 +0100
|
||||
Subject: [PATCH] Convert player skulls async
|
||||
@@ -38,7 +38,7 @@ index 17e88b8..75763ab 100644
|
||||
-
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/server/TileEntitySkull.java b/src/main/java/net/minecraft/server/TileEntitySkull.java
|
||||
index 889ae50..6c33c2d 100644
|
||||
index 889ae50..6cc8738 100644
|
||||
--- a/src/main/java/net/minecraft/server/TileEntitySkull.java
|
||||
+++ b/src/main/java/net/minecraft/server/TileEntitySkull.java
|
||||
@@ -5,11 +5,66 @@ import com.mojang.authlib.GameProfile;
|
||||
@@ -108,7 +108,7 @@ index 889ae50..6c33c2d 100644
|
||||
|
||||
public TileEntitySkull() {}
|
||||
|
||||
@@ -68,35 +123,58 @@ public class TileEntitySkull extends TileEntity {
|
||||
@@ -68,35 +123,60 @@ public class TileEntitySkull extends TileEntity {
|
||||
}
|
||||
|
||||
private void e() {
|
||||
@@ -124,7 +124,9 @@ index 889ae50..6c33c2d 100644
|
||||
+ setSkullType( 3 ); // Work around client bug
|
||||
+ g = input;
|
||||
+ update();
|
||||
+ world.notify(position);
|
||||
+ if (world != null) {
|
||||
+ world.notify(position);
|
||||
+ }
|
||||
+ return false;
|
||||
+ }
|
||||
+ });
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
From cd75ac40b7cae1b36a9c0626b6ac8b1baf5d7e09 Mon Sep 17 00:00:00 2001
|
||||
From 2a91a6fce8494fcdd6ea4b91c6c01eb557752558 Mon Sep 17 00:00:00 2001
|
||||
From: md_5 <git@md-5.net>
|
||||
Date: Tue, 30 Sep 2014 21:49:10 +1000
|
||||
Subject: [PATCH] Don't Fire InventoryCloseEvent Unless Required
|
||||
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
|
||||
index 74e0930..efd247c 100644
|
||||
index f057a91..72baeba 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
|
||||
@@ -828,6 +828,7 @@ public class CraftEventFactory {
|
||||
@@ -833,6 +833,7 @@ public class CraftEventFactory {
|
||||
}
|
||||
|
||||
public static void handleInventoryCloseEvent(EntityHuman human) {
|
||||
|
||||
Reference in new issue
Block a user