mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 11:35:08 -04:00
breakable liquids should behave the same even when can't place/delete the block (thanks tornato)
This commit is contained in:
parent
bea0405984
commit
9419d55de4
@ -219,9 +219,7 @@ void Game_ChangeBlock(int x, int y, int z, BlockID block) {
|
||||
bool Game_CanPick(BlockID block) {
|
||||
if (Blocks.Draw[block] == DRAW_GAS) return false;
|
||||
if (Blocks.Draw[block] == DRAW_SPRITE) return true;
|
||||
|
||||
if (Blocks.Collide[block] != COLLIDE_LIQUID) return true;
|
||||
return Game_BreakableLiquids && Blocks.CanPlace[block] && Blocks.CanDelete[block];
|
||||
return Blocks.Collide[block] != COLLIDE_LIQUID || Game_BreakableLiquids;
|
||||
}
|
||||
|
||||
bool Game_UpdateTexture(GfxResourceID* texId, struct Stream* src, const String* file, uint8_t* skinType) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user