mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-26 06:52:58 +00:00
Restore methods so other addons work again (#92)
Co-authored-by: Alexdoru <[email protected]>
This commit is contained in:
1 parent
c5ceef1a78
commit
96521a399b
38 files changed
+1056
-866
No files matched your search
@@ -82,6 +82,15 @@ public class BlockBifrost extends BlockModContainer<TileBifrost> implements ILex
|
||||
return 0;
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void loadTextures(TextureStitchEvent.Pre event) {
|
||||
if(event.map.getTextureType() == 0) {
|
||||
TextureAtlasSprite icon = new InterpolatedIcon("botania:bifrost");
|
||||
if(event.map.setTextureEntry("botania:bifrost", icon))
|
||||
blockIcon = icon;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerBlockIcons(IIconRegister par1IconRegister) {
|
||||
@@ -101,12 +110,8 @@ public class BlockBifrost extends BlockModContainer<TileBifrost> implements ILex
|
||||
public class EventHandler {
|
||||
@SubscribeEvent
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void loadTextures(TextureStitchEvent.Pre event) {
|
||||
if(event.map.getTextureType() == 0) {
|
||||
TextureAtlasSprite icon = new InterpolatedIcon("botania:bifrost");
|
||||
if(event.map.setTextureEntry("botania:bifrost", icon))
|
||||
blockIcon = icon;
|
||||
}
|
||||
public void loadTexturesWrapper(TextureStitchEvent.Pre event) {
|
||||
BlockBifrost.this.loadTextures(event);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user