mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-22 04:52:15 +00:00
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:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user