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.getItem() instanceof IHudDisplay){
|
||||
profiler.startSection("ItemHudDisplay");
|
||||
((IHudDisplay)stack.getItem()).displayHud(minecraft, player, stack, posHit, profiler, event.getResolution());
|
||||
if(minecraft.theWorld != null){
|
||||
((IHudDisplay)stack.getItem()).displayHud(minecraft, player, stack, posHit, profiler, event.getResolution());
|
||||
}
|
||||
profiler.endSection();
|
||||
}
|
||||
}
|
||||
|
@ -147,7 +149,9 @@ public class ClientEvents{
|
|||
|
||||
if(blockHit instanceof IHudDisplay){
|
||||
profiler.startSection("BlockHudDisplay");
|
||||
((IHudDisplay)blockHit).displayHud(minecraft, player, stack, posHit, profiler, event.getResolution());
|
||||
if(minecraft.theWorld != null){
|
||||
((IHudDisplay)blockHit).displayHud(minecraft, player, stack, posHit, profiler, event.getResolution());
|
||||
}
|
||||
profiler.endSection();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue