mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
Why can this even happen..?
This commit is contained in:
parent
01909c9787
commit
41a78d0399
1 changed files with 6 additions and 2 deletions
|
@ -136,7 +136,9 @@ public class ClientEvents{
|
||||||
if(stack != null){
|
if(stack != null){
|
||||||
if(stack.getItem() instanceof IHudDisplay){
|
if(stack.getItem() instanceof IHudDisplay){
|
||||||
profiler.startSection("ItemHudDisplay");
|
profiler.startSection("ItemHudDisplay");
|
||||||
|
if(minecraft.theWorld != null){
|
||||||
((IHudDisplay)stack.getItem()).displayHud(minecraft, player, stack, posHit, profiler, event.getResolution());
|
((IHudDisplay)stack.getItem()).displayHud(minecraft, player, stack, posHit, profiler, event.getResolution());
|
||||||
|
}
|
||||||
profiler.endSection();
|
profiler.endSection();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -147,7 +149,9 @@ public class ClientEvents{
|
||||||
|
|
||||||
if(blockHit instanceof IHudDisplay){
|
if(blockHit instanceof IHudDisplay){
|
||||||
profiler.startSection("BlockHudDisplay");
|
profiler.startSection("BlockHudDisplay");
|
||||||
|
if(minecraft.theWorld != null){
|
||||||
((IHudDisplay)blockHit).displayHud(minecraft, player, stack, posHit, profiler, event.getResolution());
|
((IHudDisplay)blockHit).displayHud(minecraft, player, stack, posHit, profiler, event.getResolution());
|
||||||
|
}
|
||||||
profiler.endSection();
|
profiler.endSection();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue