Add Grass Palette Group #3481
No reviewers
Labels
No Label
#P1 CRITICAL
#P2: HIGH
#P3: elevated
#P4 priority: medium
#P6: low
#Review
annoying
API
bug
code quality
combat
commands
compatibility
configurability
contribution inside
controls
core feature
creative mode
delayed for engine release
documentation
duplicate
enhancement
environment
feature request
gameplay
graphics
ground content conflict
GUI/HUD
help wanted
incomplete feature
invalid / won't fix
items
looking for contributor
mapgen
meta
mineclone2+
Minecraft >= 1.13
Minecraft >= 1.17
missing feature
mobile
mobs
mod support
model needed
multiplayer
Needs adoption
needs discussion
needs engine change
needs more information
needs research
nodes
non-mob entities
performance
player
possible close
redstone
release notes
schematics
Skyblock
sounds
Testing / Retest
tools
translation
unconfirmed
mcl5
mcla
Media missing
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: VoxeLibre/VoxeLibre#3481
Loading…
Reference in New Issue
No description provided.
Delete Branch "grass_palette_group"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request adds a
grass_palette
group, which finally completes the trio ofgrass_palette
,foliage_palette
, andwater_palette
.I also added some code for when I get to adding biome coloured potted ferns in the future.
d9c5e2fcb0
to4882324ec8
@ -207,3 +208,3 @@
dig_by_water = 1, destroy_by_lava_flow = 1, dig_by_piston = 1,
flammable = 2, fire_encouragement = 60, fire_flammability = 100,
plant = 1, double_plant = 1, non_mycelium_plant = 1, compostability = 65
plant = 1, double_plant = 1, non_mycelium_plant = 1, compostability = 65, grass_palette = nil
Is this safe if it remains nil?
It should be safe, I think?
I messed around in a world on this branch and have encountered no issues so far.
The game interprets
nil
as0
when it comes to groups: https://minetest.gitlab.io/minetest/groups/#usageI wouldn't assume that from those docs:
"When not defined, the rating of a group defaults to 0."
You have defined it, so this probably isn't relevant.
"Thus when you read groups, you must interpret nil and 0 as the same value, 0."
This means we need to interpret nil and zero as the same value, it doesn't say anything about what they do. Have you tested just setting nil and trying to retrieve it? C++ is a statically typed language and it isn't as friendly as lua if you put a non int in an int unless they've wrapped that code.
I have set the
grass_palette
group of grass blocks tonil
just to check for any crashes, and nothing has crashed.Or is there a different way that you want me to test this out?
Nah. I think that is probably fine then. Thanks for checking. It puts my mind at rest.
No problem. I can see why some would be afraid of the usage of
nil
, though.Seems to be a case of déjà vu here as well.
4882324ec8
to261b5dda98
Looks good and works.
Code quality is improving all the time and I appreciate the fact there is no merge commit in there so I can rebase.