mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-05 18:31:29 +01:00
cab333b217
Don't send requests of every player was found in the global api cache SpigotMC/Spigot@841270ff1e Correctly set the response code for the cached lookups and return the ... SpigotMC/Spigot@f170b7899c Don't try and re-set the global api cache on reload SpigotMC/Spigot@b410a00a66 Use a compile time sneaky throw hack. SpigotMC/Spigot@508462b96b Fix a missed rename in WorldGenGroundBush SpigotMC/Spigot@0614d8fae9
27 lines
854 B
Diff
27 lines
854 B
Diff
From 308a3495c74811af7e4a3e2c48b3582be94d2b80 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 4a40068..3deacc6 100644
|
|
--- a/src/main/java/net/minecraft/server/ItemSkull.java
|
|
+++ b/src/main/java/net/minecraft/server/ItemSkull.java
|
|
@@ -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
|
|
world.setTypeAndData(i, j, k, Blocks.SKULL, l, 2);
|
|
int i1 = 0;
|
|
|
|
--
|
|
1.9.1
|
|
|