mt-mods / plantlife_modpack

Other
6 stars 11 forks source link

It is possible to dig vine in protected areas #57

Closed GreenDirkfried closed 10 months ago

GreenDirkfried commented 10 months ago

How to test this: Have vine in an area that is protected by a protector node (from another player with you not included and without you having protection bypass privs) and dig it (either with shears or without). The vine is removed.

Why is this a problem: On servers vine is used as a decorative node. Removing it corresponds to griefing this area.

Why does this happen: I think it happens because of the custom "on_dig" function in https://github.com/mt-mods/plantlife_modpack/blob/master/vines/init.lua#L39 that is missing a check for protection.