Update to 1.8.4
This commit is contained in:
24
CraftBukkit-Patches/0114-Check-Skull-canPlace.patch
Normal file
24
CraftBukkit-Patches/0114-Check-Skull-canPlace.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
From 0000000000000000000000000000000000000000 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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/server/ItemSkull.java
|
||||
+++ b/src/main/java/net/minecraft/server/ItemSkull.java
|
||||
@@ -0,0 +0,0 @@ public class ItemSkull extends Item {
|
||||
return false;
|
||||
} else {
|
||||
if (!world.isClientSide) {
|
||||
+ // 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;
|
||||
|
||||
--
|
||||
Reference in New Issue
Block a user