2016-02-29 21:33:06 +00:00
|
|
|
From 8828d915ce0c8b6e36728956002b2b0658de77a7 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
|
2016-02-29 21:33:06 +00:00
|
|
|
index 2a8c5f0..75cd3f1 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
|
2016-02-29 21:33:06 +00:00
|
|
|
@@ -33,6 +33,12 @@ public class ItemSkull extends Item {
|
|
|
|
if (world.isClientSide) {
|
|
|
|
return EnumInteractionResult.SUCCESS;
|
|
|
|
} else {
|
2014-11-28 01:17:45 +00:00
|
|
|
+ // Spigot Start
|
|
|
|
+ if ( !Blocks.SKULL.canPlace( world, blockposition ) )
|
|
|
|
+ {
|
2016-02-29 21:33:06 +00:00
|
|
|
+ return EnumInteractionResult.FAIL;
|
2014-11-28 01:17:45 +00:00
|
|
|
+ }
|
|
|
|
+ // Spigot End
|
2016-02-29 21:33:06 +00:00
|
|
|
world.setTypeAndData(blockposition, Blocks.SKULL.getBlockData().set(BlockSkull.FACING, enumdirection), 11);
|
2014-11-28 01:17:45 +00:00
|
|
|
int i = 0;
|
|
|
|
|
|
|
|
--
|
2016-02-29 21:33:06 +00:00
|
|
|
2.5.0
|
2014-11-28 01:17:45 +00:00
|
|
|
|