Lothrazar / CustomGameRules

config controls for gamerule
MIT License
1 stars 1 forks source link

KeepInventoryArmor is set true, armor still dropping #14

Open Jinarra opened 2 years ago

Jinarra commented 2 years ago

Minecraft Version: 1.19.2

Forge Version: 43.1.3

Mod Version: 1.1.4

Single Player or Server: Server

Describe problem (what you were doing; what happened; what should have happened): Dying with armor equipped, armor drops. Should not be dropping -

Log file link: https://pastebin.com/asm0RfC2

Video/images/gifs (direct upload or link):

If your bug is related to anything causing LAG you need to measure the lag by taking a sample https://minecraft.curseforge.com/projects/sampler

QuirkyKitKit commented 2 years ago

@Jinarra Not affiliated with the mod but was looking at bug reports and thought I could chime in to help you. The gamerule works in the opposite way you would assume- from my testing.

keepInventory true (keeps everything) keepInventoryArmor false (keeps armor on the condition that keepInventory is true) keepInventoryArmor true (drops armor but keeps everything else on the condition that keepInventory is true)

keepInventoryExperience works in the same way as the armor rule.

The custom keep rules seem to only work on the condition that the basic keepInventory is toggled true.

Jinarra commented 2 years ago

@QuirkyKitKit This worked. Thank you!