This commit is contained in:
kirillsaint 2023-07-02 03:24:17 +06:00
parent 8a55d0dce6
commit d430104e06

View File

@ -7,10 +7,7 @@ import net.minecraft.client.renderer.tileentity.TileEntityBannerRenderer;
import net.minecraft.item.EnumDyeColor;
import net.minecraft.tileentity.TileEntityBanner;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
import org.spongepowered.asm.mixin.*;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect;
import java.util.Iterator;
import java.util.List;
@ -18,18 +15,6 @@ import java.util.Map;
@Mixin(TileEntityBannerRenderer.class)
public class TileEntityBannerRendererMixin {
private final String silent$renderTileEntityAtDesc =
//#if MC==10809
"renderTileEntityAt(Lnet/minecraft/tileentity/TileEntityBanner;DDDFI)V";
//#else
//$$ "renderTileEntityAt(Lnet/minecraft/tileentity/TileEntityBanner;DDDFIF)V";
//#endif
@Redirect(method = silent$renderTileEntityAtDesc, at = @At(value = "INVOKE", target = "Lnet/minecraft/world/World;getTotalWorldTime()J"))
private long silent$resolveOverflow(World world) {
return world.getTotalWorldTime() % 100L;
}
//#if MC==10809
@Shadow
@Final