Skip to content

Commit

Permalink
- 修复几个失效的修复。
Browse files Browse the repository at this point in the history
  • Loading branch information
KasumiNova committed Mar 18, 2024
1 parent b8b1327 commit 2115d35
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ dependencies {
compileOnly(rfg.deobf("curse.maven:mrcrayfish-furniture-mod-55438:3865259"))
compileOnly(rfg.deobf("curse.maven:extended-crafting-nomifactory-edition-398267:4592627"))
compileOnly(rfg.deobf("curse.maven:cucumber-272335:2645867"))
compileOnly(rfg.deobf("curse.maven:better-builders-wands-238403:2691084"))
}

// Publishing to a Maven repository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ public void injectIs(final ItemStack itemStack, final CallbackInfoReturnable<Boo
if (!StellarCoreConfig.PERFORMANCE.enderCore.oreThing) {
return;
}
if (this.ores.size() <= 4) {
return;
}

if (itemStack == null || itemStack.isEmpty()) {
cir.setReturnValue(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public abstract class MixinTileEntityBase extends TileEntity {
@Shadow(remap = false) protected abstract void sendProgressIf();

@Inject(method = "update", at = @At("HEAD"), cancellable = true)
private void redirectGetTileEntity(final CallbackInfo ci) {
private void injectUpdate(final CallbackInfo ci) {
if (!StellarCoreConfig.PERFORMANCE.enderIO.tileEntityBase) {
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public abstract class MixinAbstractConduit {

@Shadow(remap = false) protected boolean readFromNbt;

@Shadow(remap = false)private boolean clientStateDirty;
@Shadow(remap = false) private boolean clientStateDirty;

@Shadow(remap = false) @Nonnull public abstract IConduitBundle getBundle();

Expand All @@ -31,7 +31,7 @@ public abstract class MixinAbstractConduit {
*/
@Inject(method = "updateEntity", at = @At("HEAD"), cancellable = true, remap = false)
public void updateEntity(final World world, final CallbackInfo ci) {
if (StellarCoreConfig.PERFORMANCE.enderIOConduits.abstractConduit) {
if (!StellarCoreConfig.PERFORMANCE.enderIOConduits.abstractConduit) {
return;
}
ci.cancel();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private static void onPlaceItemIntoWorld(final ItemStack itemstack,
final EnumHand hand,
final CallbackInfoReturnable<EnumActionResult> cir)
{
if (StellarCoreConfig.PERFORMANCE.vanilla.capturedBlockSnapshots) {
if (!StellarCoreConfig.PERFORMANCE.vanilla.capturedBlockSnapshots) {
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ private static void renderEntity(final Entity entity, final int xPos, final int
if (!StellarCoreConfig.BUG_FIXES.theOneProbe.fixRenderHelper) {
return;
}
ci.cancel();
GlStateManager.pushMatrix();
GlStateManager.color(1.0F, 1.0F, 1.0F);
GlStateManager.enableRescaleNormal();
Expand Down

0 comments on commit 2115d35

Please sign in to comment.