mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-08 00:11:34 +01:00
Allow ItemEntity#getMergeUpdateOption to be null
This commit is contained in:
parent
7e20278dd9
commit
b1e86adb23
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user