-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix extra utilities ender quarry freeze randomly
- Loading branch information
1 parent
7449cf9
commit 495ee29
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...itchej123/hodgepodge/mixins/late/extrautilities/MixinTileEntityEnderQuarry_FixFreeze.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.mitchej123.hodgepodge.mixins.late.extrautilities; | ||
|
||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
|
||
import com.llamalad7.mixinextras.injector.ModifyReturnValue; | ||
import com.rwtema.extrautils.tileentity.enderquarry.TileEntityEnderQuarry; | ||
|
||
@Mixin(TileEntityEnderQuarry.class) | ||
public class MixinTileEntityEnderQuarry_FixFreeze { | ||
|
||
@ModifyReturnValue(method = "harvestBlock", at = @At("RETURN"), remap = false) | ||
private boolean hodgepodge$fixFreeze(boolean original) { | ||
// To fix a weird issue with certain mods that let the Ender Quarry stuck at a | ||
// mostly random location, return true also in the following (all) scenario: | ||
// - The harvested block has no drops | ||
// - The harvested block has unexpected drops | ||
// - The harvested block has been harvested by another Entity | ||
return true; | ||
} | ||
} |