Fix some more errors regarding blocks and Tile Entities and GUIs/Models.

GuiWidgetSlider now requires a forge event to work while being used to scroll with the mouse wheel.
This commit is contained in:
alexbegt committed 2019-05-22 19:34:05 -04:00
1 parent e0d244b5f6
commit a793b6b7bc
5 files changed
+84 -87

No files matched your search

@@ -26,11 +26,6 @@ public class ModelHelper {
public static final TRSRTransformation BLOCK_THIRD_PERSON_RIGHT;
public static final TRSRTransformation BLOCK_THIRD_PERSON_LEFT;
public static TextureAtlasSprite getTextureFromBlock(Block block, int meta) {
IBlockState state = block.getStateFromMeta(meta);
return Minecraft.getInstance().getBlockRendererDispatcher().getBlockModelShapes().getTexture(state);
}
public static TextureAtlasSprite getTextureFromBlockstate(IBlockState state) {
return Minecraft.getInstance().getBlockRendererDispatcher().getBlockModelShapes().getTexture(state);
}