Allow ItemEntity#getMergeUpdateOption to be null

This commit is contained in:
Felix Cravic 2020-06-01 02:18:24 +02:00
parent 7e20278dd9
commit b1e86adb23

View File

@ -62,7 +62,7 @@ public class ItemEntity extends ObjectEntity {
@Override
public void update(long time) {
if (isMergeable() && isPickable() &&
(mergeUpdateOption != null && !CooldownUtils.hasCooldown(time, lastMergeCheck, mergeUpdateOption))) {
(mergeUpdateOption == null || !CooldownUtils.hasCooldown(time, lastMergeCheck, mergeUpdateOption))) {
this.lastMergeCheck = time;
Chunk chunk = instance.getChunkAt(getPosition());