diff options
Diffstat (limited to 'CraftBukkit-Patches/0135-Check-Skull-canPlace.patch')
-rw-r--r-- | CraftBukkit-Patches/0135-Check-Skull-canPlace.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/CraftBukkit-Patches/0135-Check-Skull-canPlace.patch b/CraftBukkit-Patches/0135-Check-Skull-canPlace.patch new file mode 100644 index 0000000000..2a2fc65e84 --- /dev/null +++ b/CraftBukkit-Patches/0135-Check-Skull-canPlace.patch @@ -0,0 +1,26 @@ +From 8d34503e826ede14b337454e9188bc833ed5cbda Mon Sep 17 00:00:00 2001 +From: md_5 <[email protected]> +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 4a40068..3deacc6 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 + |