Skip to content

Commit 33c0d44

Browse files
committed
Fix crash
1 parent ae5db53 commit 33c0d44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/earthcomputer/clientcommands/mixin/MixinClientPlayerEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ private void onSendChatMessage(String message, CallbackInfo ci) {
4848

4949
@Inject(method = "tick", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/network/AbstractClientPlayerEntity;tick()V"))
5050
private void onTick(CallbackInfo ci) {
51-
if (!world.getEntitiesByClass(ExperienceOrbEntity.class, getBoundingBox(), null).isEmpty()) {
51+
if (!world.getEntitiesByClass(ExperienceOrbEntity.class, getBoundingBox(), entity -> true).isEmpty()) {
5252
PlayerRandCracker.onXpOrb();
5353
if (Enchantments.MENDING.getEquipment(this).values().stream().anyMatch(this::couldMendingRepair)) {
5454
PlayerRandCracker.onMending();

0 commit comments

Comments
 (0)