spawn item charge fix
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit

This commit is contained in:
austin 2025-05-14 14:53:14 -04:00
parent fec86048ed
commit 6c6efbebf6
2 changed files with 2 additions and 0 deletions

View File

@ -1770,6 +1770,7 @@ Fix playing audio without item defined in natural inventory panel
Fix window framebuffer scrunching bug
Recipes for spawn items defined in parent entity
Spawn items have stack/charge
Spawn items respect charge state

View File

@ -106,6 +106,7 @@ public class PlayerActions {
if(secondaryUsage.getSpawnEntityId() != null){
Vector3d spawnPos = new Vector3d(message.getviewTargetX(),message.getviewTargetY(),message.getviewTargetZ());
CommonEntityUtils.serverSpawnBasicObject(playerRealm, spawnPos, secondaryUsage.getSpawnEntityId());
ServerChargeState.getServerChargeState(itemEnt).attemptAddCharges(-1);
}
//block editing