Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
Signed-off-by: Liyan Zhao <[email protected]>
  • Loading branch information
zly2006 committed Jul 30, 2024
1 parent 29f90e1 commit 3653248
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.github.zly2006.reden.mixin.debug;

import com.github.zly2006.reden.malilib.MalilibSettingsKt;
import com.github.zly2006.reden.utils.UtilsKt;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.boss.dragon.EnderDragonPart;
import net.minecraft.world.World;
import org.spongepowered.asm.mixin.Mixin;

@Mixin(EnderDragonPart.class)
public abstract class MixinEnderPart extends Entity {
public MixinEnderPart(EntityType<?> type, World world) {
super(type, world);
}

@Override
public void baseTick() {
if (UtilsKt.isClient() && MalilibSettingsKt.DEBUG_LOGGER.getBooleanValue()) {
System.out.println("AAAAAAA");
}
super.baseTick();
}
}
1 change: 1 addition & 0 deletions src/main/resources/reden.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"common.MixinServerWorld",
"common.remote.MixinMinecraftServer",
"common.remote.MixinServerWorld",
"debug.MixinEnderPart",
"debug.compatTest.MixinMinecraftServet_ct",
"debug.compatTest.MixinServerChunkManager_ct",
"debug.compatTest.MixinServerWorld_ct",
Expand Down

0 comments on commit 3653248

Please sign in to comment.