Update PaperSpigot to Minecraft 1.8.3
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Aikar <aikar@aikar.co>
|
||||
Date: Wed, 3 Jul 2013 08:29:26 -0400
|
||||
Date: Sun, 8 Mar 2015 04:37:23 -0500
|
||||
Subject: [PATCH] Prevent tile entity and entity crashes
|
||||
|
||||
|
||||
@@ -9,20 +9,19 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
--- a/src/main/java/net/minecraft/server/TileEntity.java
|
||||
+++ b/src/main/java/net/minecraft/server/TileEntity.java
|
||||
@@ -0,0 +0,0 @@ public abstract class TileEntity {
|
||||
public void a(CrashReportSystemDetails crashreportsystemdetails) {
|
||||
crashreportsystemdetails.a("Name", (Callable) (new CrashReportTileEntityName(this)));
|
||||
}
|
||||
});
|
||||
if (this.world != null) {
|
||||
- CrashReportSystemDetails.a(crashreportsystemdetails, this.position, this.w(), this.u());
|
||||
+ // PaperSpigot start - Prevent tile entity and entity crashes
|
||||
+ Block block = this.w();
|
||||
+ if ( block != null )
|
||||
+ {
|
||||
+ if (block != null) {
|
||||
+ CrashReportSystemDetails.a(crashreportsystemdetails, this.position, this.w(), this.u());
|
||||
+ }
|
||||
+ // PaperSpigot end
|
||||
crashreportsystemdetails.a("Actual block type", (Callable) (new CrashReportTileEntityType(this)));
|
||||
crashreportsystemdetails.a("Actual block data value", (Callable) (new CrashReportTileEntityData(this)));
|
||||
}
|
||||
crashreportsystemdetails.a("Actual block type", new Callable() {
|
||||
public String a() throws Exception {
|
||||
int i = Block.getId(TileEntity.this.world.getType(TileEntity.this.position).getBlock());
|
||||
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/server/World.java
|
||||
@@ -64,6 +63,4 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
}
|
||||
// Spigot start
|
||||
finally {
|
||||
--
|
||||
1.9.5.msysgit.0
|
||||
|
||||
--
|
||||
Reference in New Issue
Block a user