Skip to content

Commit

Permalink
Merge pull request #376 from jchung01/main
Browse files Browse the repository at this point in the history
Fix update logic for slowed item entities tweak
  • Loading branch information
ACGaming authored Feb 12, 2024
2 parents ab976d5 + 0dd5e03 commit ba80db1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ dependencies {
compileOnly 'curse.maven:codechickenlib-242818:2779848'
compileOnly 'curse.maven:cofhworld-271384:2920434'
compileOnly 'curse.maven:compactmachines-224218:2707509'
compileOnly 'curse.maven:effortlessbuilding-302113:2847346'
compileOnly 'curse.maven:endercore-231868:2972849'
compileOnly 'curse.maven:enderio-64578:2989201'
compileOnly 'curse.maven:extrautilities-225561:2678374'
Expand All @@ -197,7 +198,6 @@ dependencies {
compileOnly 'curse.maven:tinkerscomplement-272671:2843439'
compileOnly 'curse.maven:tinyprogressions-250850:2721018'
compileOnly 'maven.modrinth:industrial-foregoing:1.12.13-237'
compileOnly 'curse.maven:effortlessbuilding-302113:2847346'
// implementation 'TechReborn:TechReborn-ModCompatibility-1.12.2:1.4.0.76:universal'

if (project.use_mixins.toBoolean()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ public boolean shouldMixinConfigQueue(String mixinConfig)
return Loader.isModLoaded("collective");
case "mixins.mods.cqrepoured.json":
return Loader.isModLoaded("cqrepoured");
case "mixins.mods.effortlessbuilding.json":
return Loader.isModLoaded("effortlessbuilding");
case "mixins.mods.elementarystaffs.json":
return Loader.isModLoaded("element");
case "mixins.mods.elenaidodge2.json":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ public void utIECombinationCombine(EntityItem other, CallbackInfoReturnable<Bool
@WrapWithCondition(method = "onUpdate", at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/item/EntityItem;move(Lnet/minecraft/entity/MoverType;DDD)V"))
public boolean utIEOnUpdate(EntityItem instance, MoverType moverType, double dx, double dy, double dz)
{
if (!UTConfigTweaks.ITEMS.ITEM_ENTITIES.utIEUpdateToggle) return true;
// Run on odd ticks to not skip the '% 25' check
return UTConfigTweaks.ITEMS.ITEM_ENTITIES.utIEUpdateToggle && instance.ticksExisted % 2 != 0;
return instance.ticksExisted % 2 != 0;
}
}

0 comments on commit ba80db1

Please sign in to comment.