mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-21 12:42:53 +00:00
Work on items from wood - part 2
This commit is contained in:
1 parent
38c1aa5b4b
commit
cee31027e6
28 files changed
+1020
-680
No files matched your search
@@ -39,8 +39,8 @@ public class WoodProvider implements IWoodProvider {
|
||||
@Override
|
||||
public void registerSprites(Item item, ITextureManager manager) {
|
||||
TextureMap textureMap = FMLClientHandler.instance().getClient().getTextureMapBlocks();
|
||||
trunk = textureMap.registerSprite(new ResourceLocation(modID, type.getHeartTexture()));
|
||||
bark = textureMap.registerSprite(new ResourceLocation(modID, type.getBarkTexture()));
|
||||
trunk = textureMap.registerSprite(new ResourceLocation(type.getHeartTexture()));
|
||||
bark = textureMap.registerSprite(new ResourceLocation(type.getBarkTexture()));
|
||||
|
||||
}
|
||||
|
||||
@@ -57,8 +57,7 @@ public class WoodProvider implements IWoodProvider {
|
||||
@Override
|
||||
public ItemStack getWoodStack() {
|
||||
if (type instanceof EnumExtraTreeLog) {
|
||||
int group = type.getMetadata() / EnumExtraTreeLog.values().length;
|
||||
return GameRegistry.makeItemStack(modID + ":log." + group, type.getMetadata() % 4, 1, null);
|
||||
return WoodAccess.getInstance().getStack(type, WoodBlockKind.LOG, false);
|
||||
} else {
|
||||
return TreeManager.woodAccess.getStack(type, WoodBlockKind.LOG, false);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user