Skip to content

Commit

Permalink
bump version (1.4.2): Fix some parts of item despawn behavior not bei…
Browse files Browse the repository at this point in the history
…ng respected
  • Loading branch information
fooeyround committed Jan 6, 2025
1 parent 8f96dc9 commit f6166a1
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,23 @@
@Mixin(ItemEntity.class)
public abstract class ItemEntityMixin {

@ModifyConstant(method = "tick", constant = @Constant(intValue = 6000))
@ModifyConstant(method = {"tick", "canMerge()Z"}, constant = @Constant(intValue = 6000))
private int configured$ItemDespawnAge(int def) {
return Settings.itemDespawnAge;
}

@ModifyConstant(method = "setDespawnImmediately", constant = @Constant(intValue = 5999))
private int configured$ItemDespawnAge$setDespawnImmediately(int def) {
return Settings.itemDespawnAge-1;
}


@ModifyConstant(method = "setCovetedItem", constant = @Constant(intValue = -6000))
private int configured$setCov(int def) {
return -Settings.itemDespawnAge;
}




}

0 comments on commit f6166a1

Please sign in to comment.