Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 04:50:05 +01:00
c7f1eed0bf
3beb7729816 a77ed5758a7 52c130fc6d9
27 Zeilen
987 B
Diff
27 Zeilen
987 B
Diff
From bf223540fa0be12a3553a1a3ffbefa6cf241e7e5 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 75763ab..7f727f5 100644
|
|
--- 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 {
|
|
if (!world.isStatic) {
|
|
+ // 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;
|
|
|
|
--
|
|
2.1.0
|
|
|