Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'babric-loom' version '1.1.+'
id 'babric-loom' version '1.4.+'
id 'java'
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
org.gradle.jvmargs=-Xmx2G

# BTA
bta_version=7.2-pre2
bta_version=7.2_01

# Loader
loader_version=0.15.6-babric.6-bta
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private void renderEntityOverlay(Entity entity){
}
}
private void drawFunctionalBlocksData(TileEntity tileEntity) {
if (tileEntity != null) {
if (tileEntity != null && tileEntity.worldObj != null) {
boolean askTileEntity = !(BTWaila.excludeContinuousTileEntityData.get(tileEntity.getClass()) != null ? BTWaila.excludeContinuousTileEntityData.get(tileEntity.getClass()) : false);
if (tileEntity.worldObj == null) return;
Block block = Block.blocksList[tileEntity.worldObj.getBlockId(tileEntity.x, tileEntity.y, tileEntity.z)];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
import static toufoumaster.btwaila.BTWaila.translator;

public abstract class WailaTextComponent extends MovableHudComponent {
public static final ItemEntityRenderer itemRender = new ItemEntityRenderer();
public static ItemEntityRenderer itemRender = null;
public static final HashMap<Class<? extends Entity>, ItemStack> entityIconMap = new HashMap<>();

public static void init(){
Expand Down Expand Up @@ -614,6 +614,7 @@ protected void drawRect(int minX, int minY, int maxX, int maxY, int argb) {
}

public ItemEntityRenderer getItemRenderer(){
if (itemRender == null) itemRender = new ItemEntityRenderer();
return itemRender;
}

Expand Down
Loading