2015-06-01 09:22:52 +00:00
|
|
|
From 58c3f180077e0acae70e5144bf8a1b4324835a38 Mon Sep 17 00:00:00 2001
|
2014-11-28 01:17:45 +00:00
|
|
|
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
|
2015-02-28 11:36:22 +00:00
|
|
|
index e710073..519574b 100644
|
2014-11-28 01:17:45 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/ItemSkull.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/ItemSkull.java
|
|
|
|
@@ -35,6 +35,12 @@ public class ItemSkull extends Item {
|
|
|
|
return false;
|
|
|
|
} else {
|
2015-02-28 11:36:22 +00:00
|
|
|
if (!world.isClientSide) {
|
2014-11-28 01:17:45 +00:00
|
|
|
+ // Spigot Start
|
|
|
|
+ if ( !Blocks.SKULL.canPlace( world, blockposition ) )
|
|
|
|
+ {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ // Spigot End
|
|
|
|
world.setTypeAndData(blockposition, Blocks.SKULL.getBlockData().set(BlockSkull.FACING, enumdirection), 3);
|
|
|
|
int i = 0;
|
|
|
|
|
|
|
|
--
|
2015-05-09 20:23:26 +00:00
|
|
|
2.1.4
|
2014-11-28 01:17:45 +00:00
|
|
|
|