spawn item charge fix
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
This commit is contained in:
parent
fec86048ed
commit
6c6efbebf6
@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user