fix destroying blocks
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
f6f6bfa15c
commit
720e147d99
@ -2145,6 +2145,7 @@ Fix single block shader
|
|||||||
|
|
||||||
(06/09/2025)
|
(06/09/2025)
|
||||||
Cursor object pooling
|
Cursor object pooling
|
||||||
|
Fix destroying blocks
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -2,6 +2,7 @@ package electrosphere.server.player;
|
|||||||
|
|
||||||
import org.joml.Vector3i;
|
import org.joml.Vector3i;
|
||||||
|
|
||||||
|
import electrosphere.client.block.BlockChunkData;
|
||||||
import electrosphere.data.block.BlockType;
|
import electrosphere.data.block.BlockType;
|
||||||
import electrosphere.data.entity.item.Item;
|
import electrosphere.data.entity.item.Item;
|
||||||
import electrosphere.engine.Globals;
|
import electrosphere.engine.Globals;
|
||||||
@ -49,6 +50,8 @@ public class BlockActions {
|
|||||||
if(!Globals.gameConfigCurrent.getCreatureTypeLoader().getType(creature).getId().equals(LoadingUtils.EDITOR_RACE_NAME)){
|
if(!Globals.gameConfigCurrent.getCreatureTypeLoader().getType(creature).getId().equals(LoadingUtils.EDITOR_RACE_NAME)){
|
||||||
ServerChargeState.attemptRemoveCharges(creature, 1);
|
ServerChargeState.attemptRemoveCharges(creature, 1);
|
||||||
}
|
}
|
||||||
|
} else if(blockType == BlockChunkData.BLOCK_TYPE_EMPTY){
|
||||||
|
ServerBlockEditing.editBlockArea(playerRealm, chunkPos, blockPos, BlockChunkData.BLOCK_TYPE_EMPTY, (short)0, editSize);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user