mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
Fix infinite pumpkin seeds bug
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From abfdbc5f08094e06d4ceeb4247926bc131f0082c Mon Sep 17 00:00:00 2001
|
||||
From 1d2e40070482f9b48fa9c8b16023d42dd40ac28d Mon Sep 17 00:00:00 2001
|
||||
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
||||
Date: Fri, 3 May 2019 23:58:44 -0500
|
||||
Subject: [PATCH] Snowman set pumpkin on/off by player interaction
|
||||
@@ -9,7 +9,7 @@ Subject: [PATCH] Snowman set pumpkin on/off by player interaction
|
||||
2 files changed, 23 insertions(+)
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/EntitySnowman.java b/src/main/java/net/minecraft/server/EntitySnowman.java
|
||||
index fe1381cc1..42d0c0017 100644
|
||||
index fe1381cc1..4e9cc7137 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntitySnowman.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntitySnowman.java
|
||||
@@ -8,6 +8,7 @@ import org.bukkit.event.player.PlayerShearEntityEvent;
|
||||
@@ -27,7 +27,7 @@ index fe1381cc1..42d0c0017 100644
|
||||
+
|
||||
+ // Purpur start
|
||||
+ if (net.pl3x.purpur.PurpurConfig.snowmanDropsPumpkin) {
|
||||
+ EntityItem pumpkin = new EntityItem(world, locX, locY, locZ, new ItemStack(Blocks.PUMPKIN.getItem()));
|
||||
+ EntityItem pumpkin = new EntityItem(world, locX, locY, locZ, new ItemStack(Blocks.CARVED_PUMPKIN.getItem()));
|
||||
+ pumpkin.pickupDelay = 10;
|
||||
+ world.addEntity(pumpkin);
|
||||
+ }
|
||||
|
||||
Reference in New Issue
Block a user