MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / BlockDefs_OnBlocksLightPropertyUpdated

Function BlockDefs_OnBlocksLightPropertyUpdated

src/Protocol.c:1825–1829  ·  view source on GitHub ↗

#######################################################################################################################* *------------------------------------------------------Custom blocks------------------------------------------------------* *#########################################################################################################################*/

Source from the content-addressed store, hash-verified

1823*------------------------------------------------------Custom blocks------------------------------------------------------*
1824*#########################################################################################################################*/
1825static void BlockDefs_OnBlocksLightPropertyUpdated(BlockID block, cc_bool oldProp) {
1826 if (!World.Loaded) return;
1827 /* Need to refresh lighting when a block's light blocking state changes */
1828 if (Blocks.BlocksLight[block] != oldProp) Lighting.Refresh();
1829}
1830
1831static void BlockDefs_OnBrightnessPropertyUpdated(BlockID block, cc_uint8 oldProp) {
1832 if (!World.Loaded) return;

Callers 2

BlockDefs_UndefineBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected