mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 17:01:56 +01:00
Remove upstream-pulled patch
This commit is contained in:
parent
a44f5dd1b5
commit
c6f594dcfc
1 changed files with 0 additions and 30 deletions
|
@ -1,30 +0,0 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Bestle <tom.roberts00@gmail.com>
|
||||
Date: Fri, 13 Feb 2015 14:33:17 -0600
|
||||
Subject: [PATCH] Despawn items outside EAR activation range
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityItem.java b/src/main/java/net/minecraft/server/EntityItem.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityItem.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityItem.java
|
||||
@@ -0,0 +0,0 @@ public class EntityItem extends Entity {
|
||||
this.r();
|
||||
this.age = 5999;
|
||||
}
|
||||
+
|
||||
+ // PaperSpigot start - Despawn items outside of the EAR activation range
|
||||
+ @Override
|
||||
+ public void inactiveTick() {
|
||||
+ this.age++;
|
||||
+ if (!this.world.isStatic && this.age >= world.spigotConfig.itemDespawnRate) {
|
||||
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callItemDespawnEvent(this).isCancelled()) {
|
||||
+ this.age = 0;
|
||||
+ return;
|
||||
+ }
|
||||
+ this.die();
|
||||
+ }
|
||||
+ }
|
||||
+ // PaperSpigot end
|
||||
}
|
||||
--
|
Loading…
Reference in a new issue