Fix despawn rate to be >=

This commit is contained in:
md_5 2014-04-15 09:37:11 +10:00
parent 7313a6b822
commit 64eb4b8327

View File

@ -1,11 +1,11 @@
From 5b09851dfc3f83d53d8591efac06dbdb9079b90d Mon Sep 17 00:00:00 2001 From ad6f0ad1cc97e082ab11f471774a88a4dd7c7370 Mon Sep 17 00:00:00 2001
From: md_5 <md_5@live.com.au> From: md_5 <md_5@live.com.au>
Date: Mon, 14 Oct 2013 19:20:10 +1100 Date: Mon, 14 Oct 2013 19:20:10 +1100
Subject: [PATCH] Arrow Despawn Rate Subject: [PATCH] Arrow Despawn Rate
diff --git a/src/main/java/net/minecraft/server/EntityArrow.java b/src/main/java/net/minecraft/server/EntityArrow.java diff --git a/src/main/java/net/minecraft/server/EntityArrow.java b/src/main/java/net/minecraft/server/EntityArrow.java
index 3137bcf..344f917 100644 index 3137bcf..13903e9 100644
--- a/src/main/java/net/minecraft/server/EntityArrow.java --- a/src/main/java/net/minecraft/server/EntityArrow.java
+++ b/src/main/java/net/minecraft/server/EntityArrow.java +++ b/src/main/java/net/minecraft/server/EntityArrow.java
@@ -156,7 +156,7 @@ public class EntityArrow extends Entity implements IProjectile { @@ -156,7 +156,7 @@ public class EntityArrow extends Entity implements IProjectile {
@ -13,7 +13,7 @@ index 3137bcf..344f917 100644
if (block == this.g && i == this.h) { if (block == this.g && i == this.h) {
++this.at; ++this.at;
- if (this.at == 1200) { - if (this.at == 1200) {
+ if (this.at == world.spigotConfig.arrowDespawnRate) { + if (this.at >= world.spigotConfig.arrowDespawnRate) { // First int after shooter
this.die(); this.die();
} }
} else { } else {
@ -34,5 +34,5 @@ index 82d59e7..2ec047c 100644
+ } + }
} }
-- --
1.8.5.2.msysgit.0 1.8.3.2