mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-23 15:48:34 +01:00
move a thing so its not on fire
and lowercase thingy
This commit is contained in:
parent
a4f07f9885
commit
7fb6602969
3 changed files with 8 additions and 5 deletions
|
@ -24,11 +24,11 @@ public final class InitEntities{
|
|||
ModUtil.LOGGER.info("Initializing Entities...");
|
||||
|
||||
EntityRegistry.registerModEntity(new ResourceLocation(ModUtil.MOD_ID, "worm"), EntityWorm.class, ModUtil.MOD_ID+".worm", 0, ActuallyAdditions.instance, 64, 1, false);
|
||||
RenderWorm.fixItemStack();
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public static void initClient(){
|
||||
RenderingRegistry.registerEntityRenderingHandler(EntityWorm.class, RenderWorm.FACTORY);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -33,10 +33,10 @@ public class RenderWorm extends Render<EntityWorm>{
|
|||
}
|
||||
};
|
||||
|
||||
private static ItemStack STACK = ItemStack.EMPTY;
|
||||
private static ItemStack stack = ItemStack.EMPTY;
|
||||
|
||||
public static void fixItemStack(){
|
||||
STACK = new ItemStack(InitItems.itemWorm);
|
||||
stack = new ItemStack(InitItems.itemWorm);
|
||||
}
|
||||
|
||||
protected RenderWorm(RenderManager renderManager){
|
||||
|
@ -57,8 +57,8 @@ public class RenderWorm extends Render<EntityWorm>{
|
|||
GlStateManager.rotate(-(float)((boop%360)), 0, 1, 0);
|
||||
GlStateManager.translate(0, 0, 0.4);
|
||||
|
||||
STACK.setStackDisplayName(entity.getName());
|
||||
AssetUtil.renderItemInWorld(STACK);
|
||||
stack.setStackDisplayName(entity.getName());
|
||||
AssetUtil.renderItemInWorld(stack);
|
||||
|
||||
GlStateManager.popMatrix();
|
||||
}
|
||||
|
|
|
@ -14,6 +14,7 @@ package de.ellpeck.actuallyadditions.mod.proxy;
|
|||
import de.ellpeck.actuallyadditions.mod.ClientRegistryHandler;
|
||||
import de.ellpeck.actuallyadditions.mod.blocks.render.*;
|
||||
import de.ellpeck.actuallyadditions.mod.entity.InitEntities;
|
||||
import de.ellpeck.actuallyadditions.mod.entity.RenderWorm;
|
||||
import de.ellpeck.actuallyadditions.mod.event.ClientEvents;
|
||||
import de.ellpeck.actuallyadditions.mod.misc.special.SpecialRenderInit;
|
||||
import de.ellpeck.actuallyadditions.mod.tile.*;
|
||||
|
@ -55,6 +56,8 @@ public class ClientProxy implements IProxy{
|
|||
public void init(FMLInitializationEvent event){
|
||||
ModUtil.LOGGER.info("Initializing ClientProxy...");
|
||||
|
||||
RenderWorm.fixItemStack();
|
||||
|
||||
new ClientEvents();
|
||||
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCompost.class, new RenderCompost());
|
||||
|
|
Loading…
Reference in a new issue