Update to Minecraft 1.17

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2021-06-11 15:00:00 +10:00
parent 75faba7fde
commit b3a8254758
619 changed files with 10708 additions and 8451 deletions

View File

@@ -1,8 +1,8 @@
--- a/net/minecraft/world/item/ItemHanging.java
+++ b/net/minecraft/world/item/ItemHanging.java
@@ -13,6 +13,11 @@
import net.minecraft.world.item.context.ItemActionContext;
@@ -15,6 +15,11 @@
import net.minecraft.world.level.World;
import net.minecraft.world.level.gameevent.GameEvent;
+// CraftBukkit start
+import org.bukkit.entity.Player;
@@ -11,8 +11,8 @@
+
public class ItemHanging extends Item {
private final EntityTypes<? extends EntityHanging> a;
@@ -54,6 +59,18 @@
private final EntityTypes<? extends EntityHanging> type;
@@ -58,6 +63,18 @@
if (((EntityHanging) object).survives()) {
if (!world.isClientSide) {
@@ -29,5 +29,5 @@
+ }
+ // CraftBukkit end
((EntityHanging) object).playPlaceSound();
world.a((Entity) entityhuman, GameEvent.ENTITY_PLACE, blockposition);
world.addEntity((Entity) object);
}