testserver/CraftBukkit-Patches/0136-Check-Skull-canPlace.p...

27 lines
854 B
Diff
Raw Normal View History

2014-06-22 09:25:10 +00:00
From 147ce13012f41896e47a8f693e2029d48d0f088e 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
2014-04-24 06:27:12 +00:00
index f20c69e..15c60bb 100644
--- a/src/main/java/net/minecraft/server/ItemSkull.java
+++ b/src/main/java/net/minecraft/server/ItemSkull.java
2014-04-24 06:27:12 +00:00
@@ -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
2014-04-24 06:27:12 +00:00
world.setTypeAndData(i, j, k, Blocks.SKULL, l, 2);
int i1 = 0;
--
2014-04-18 23:15:23 +00:00
1.9.1