summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2014-10-20 23:29:21 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2014-10-20 23:29:21 +0100
commitf48ac56c90fd7149e5a6a7d2f9dcaa08467d2d7e (patch)
tree75b87c59dcbdaebba9879712ef41ac3e4956ddd8
parent63f3efabb3755eb8f1837f70abff609eae150c43 (diff)
downloadnoctis-f48ac56c90fd7149e5a6a7d2f9dcaa08467d2d7e.tar.bz2
Fix a braino which could sometimes let the catalyst despawn unexpectedly
-rw-r--r--src/main/java/net/flarn/noctis/item/ItemCatalyst.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/flarn/noctis/item/ItemCatalyst.java b/src/main/java/net/flarn/noctis/item/ItemCatalyst.java
index c396c91..16fb289 100644
--- a/src/main/java/net/flarn/noctis/item/ItemCatalyst.java
+++ b/src/main/java/net/flarn/noctis/item/ItemCatalyst.java
@@ -119,7 +119,7 @@ public class ItemCatalyst extends ItemNoctisBase {
if (nowTime.meetsNeed(TimeHelper.Times.NIGHT)) {
/* Reduce our age if it's getting high */
- if (entityItem.age == Numbers.CATALYST_AGE_RESET) {
+ if (entityItem.age >= Numbers.CATALYST_AGE_RESET) {
entityItem.age = 0;
}
/* Charge us up a little */