Remove 'Normalize spaces on when reading a chat packet' as it was fixed upstream

By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
Spigot
2014-05-14 14:05:42 +01:00
parent 51faa817d1
commit b86bbe69d4
41 changed files with 43 additions and 78 deletions

View File

@@ -0,0 +1,26 @@
From b835696485dcca66dc6e9be1d76078067a2f7ffd Mon Sep 17 00:00:00 2001
From: md_5 <git@md-5.net>
Date: Tue, 15 Apr 2014 10:48:35 +1000
Subject: [PATCH] Check Skull canPlace
diff --git a/src/main/java/net/minecraft/server/ItemSkull.java b/src/main/java/net/minecraft/server/ItemSkull.java
index f20c69e..15c60bb 100644
--- a/src/main/java/net/minecraft/server/ItemSkull.java
+++ b/src/main/java/net/minecraft/server/ItemSkull.java
@@ -42,6 +42,12 @@ public class ItemSkull extends Item {
}
if (!world.isStatic) {
+ // Spigot Start
+ if ( !Blocks.SKULL.canPlace( world, i, j, k ) )
+ {
+ return false;
+ }
+ // Spigot End
world.setTypeAndData(i, j, k, Blocks.SKULL, l, 2);
int i1 = 0;
--
1.9.1