null check
This commit is contained in:
parent
35aec8affe
commit
ad1f65aca6
@ -45,9 +45,11 @@
|
|||||||
+ bug fixes
|
+ bug fixes
|
||||||
Fix idle animations
|
Fix idle animations
|
||||||
Fix light cluster mapping for foliage shader
|
Fix light cluster mapping for foliage shader
|
||||||
|
Fix foliage placement
|
||||||
Fix lights not being deleted
|
Fix lights not being deleted
|
||||||
- Not sending a "light count" var to light calculations, so the data stays in buffer even though it is not being updated
|
- Not sending a "light count" var to light calculations, so the data stays in buffer even though it is not being updated
|
||||||
Fix block tree preventing initiating an attack
|
Fix block tree preventing initiating an attack
|
||||||
|
Fix equipping sword on toolbar
|
||||||
Fix return to title menu synchronization bug
|
Fix return to title menu synchronization bug
|
||||||
|
|
||||||
+ unreproducible bugs
|
+ unreproducible bugs
|
||||||
|
|||||||
@ -875,7 +875,7 @@ Fix SP debug launcher actually entering world
|
|||||||
Fix virtual scrollable clipping logic
|
Fix virtual scrollable clipping logic
|
||||||
Fix ui scaling on abnormal monitors
|
Fix ui scaling on abnormal monitors
|
||||||
- This is literally just a function of the settings file not being updated for different resolutions
|
- This is literally just a function of the settings file not being updated for different resolutions
|
||||||
|
Fix inventory null pointer check on virtualaudiomanager
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -200,10 +200,12 @@ public class ToolbarInventoryPanel {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Item itemData = Globals.gameConfigCurrent.getItemMap().getItem(ItemUtils.getType(Globals.draggedItem));
|
Item itemData = Globals.gameConfigCurrent.getItemMap().getItem(ItemUtils.getType(Globals.draggedItem));
|
||||||
if(itemData.getItemAudio() != null && itemData.getItemAudio().getUIReleaseAudio() != null){
|
if(Globals.virtualAudioSourceManager != null){
|
||||||
Globals.virtualAudioSourceManager.createVirtualAudioSource(itemData.getItemAudio().getUIReleaseAudio(), VirtualAudioSourceType.UI, false);
|
if(itemData.getItemAudio() != null && itemData.getItemAudio().getUIReleaseAudio() != null){
|
||||||
} else {
|
Globals.virtualAudioSourceManager.createVirtualAudioSource(itemData.getItemAudio().getUIReleaseAudio(), VirtualAudioSourceType.UI, false);
|
||||||
Globals.virtualAudioSourceManager.createVirtualAudioSource(AssetDataStrings.UI_SFX_ITEM_RELEASE, VirtualAudioSourceType.UI, false);
|
} else {
|
||||||
|
Globals.virtualAudioSourceManager.createVirtualAudioSource(AssetDataStrings.UI_SFX_ITEM_RELEASE, VirtualAudioSourceType.UI, false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//update ui
|
//update ui
|
||||||
Globals.dragSourceInventory = null;
|
Globals.dragSourceInventory = null;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user