Compare commits

..
5 Commits
Author SHA1 Message Date
Dream Master ef3e0a8d6e update 2025-07-17 22:48:24 +07:00
boubou19 f386ed77ac spotless 2025-07-17 16:50:51 +02:00
boubou19 fe6105ae82 Speed up kami armor event registration 2025-07-17 16:43:56 +02:00
boubou19 70874f7801 Speed up ItemProtoclay event registration 2025-07-17 16:30:13 +02:00
boubou19 cfb6632c9b Speed up ItemBloodSword event registration 2025-07-17 16:24:57 +02:00
3 changed files with 8 additions and 8 deletions

No files matched your search

+3 -3
View File
@@ -11,10 +11,10 @@ dependencies {
compileOnly('com.github.GTNewHorizons:Botania:1.12.18-GTNH:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:EnderCore:0.4.8:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:EnderIO:2.9.21:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:EnderStorage:1.7.4:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:EnderIO:2.9.19:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:EnderStorage:1.7.3:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:waila:1.8.12:api') {transitive=false}
compileOnly('com.github.GTNewHorizons:TinkersConstruct:1.13.42-GTNH:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:TinkersConstruct:1.13.40-GTNH:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:ForgeMultipart:1.6.7:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:CodeChickenCore:1.4.3:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:OpenComputers:1.11.16-GTNH:api') {transitive=false}
@@ -27,7 +27,6 @@ public class RenderInfusedCrops implements ISimpleBlockRenderingHandler {
Aspect aspect = BlockInfusedGrain.getAspect(world, x, y, z);
GL11.glPushAttrib(GL11.GL_COLOR_BUFFER_BIT);
final Tessellator tess = Tessellator.instance;
if (aspect != null && !aspect.isPrimal()) {
// Hex to RGB code from vanilla tesselator
float r = (aspect.getColor() >> 16 & 0xFF) / 255.0F;
@@ -35,14 +34,15 @@ public class RenderInfusedCrops implements ISimpleBlockRenderingHandler {
float b = (aspect.getColor() & 0xFF) / 255.0F;
GL11.glColor4f(r, g, b, 1F);
tess.setColorRGBA_I(aspect.getColor(), 255);
Tessellator.instance.setColorRGBA_I(aspect.getColor(), 255);
}
renderer.setOverrideBlockTexture(block.getIcon(world, x, y, z, world.getBlockMetadata(x, y, z)));
tess.setBrightness(block.getMixedBrightnessForBlock(world, x, y, z));
Tessellator tessellator = Tessellator.instance;
tessellator.setBrightness(block.getMixedBrightnessForBlock(world, x, y, z));
renderer.renderBlockCropsImpl(block, world.getBlockMetadata(x, y, z), x, y - 0.0625F, z);
renderer.clearOverrideBlockTexture();
// tess.setColorOpaque_I(0xFFFFFF);
// Tessellator.instance.setColorOpaque_I(0xFFFFFF);
GL11.glPopAttrib();
GL11.glPopMatrix();
@@ -96,7 +96,7 @@ public class ItemProtoclay extends ItemKamiBase {
return super.shouldRegister();
}
public class EventHandler {
class EventHandler {
@SubscribeEvent
public void Interact(PlayerInteractEvent event) {