RFTools maxShieldDimension Config Option Not Always Enforced
Faraday314 opened this issue ยท 0 comments
Issue description: When the maxShieldDimension config option is set to a value less than 5 (the default dimensions for the rftools shape card), it does not always correctly cap the max dimensions of shape cards inserted into the shield projector (any tier). The default shape card with dimensions 5x5x5 and offset 0x0x0 can be used to make a 5x5x5 shield regardless of what the maxShieldDimension option is set to. The maxShieldDimension option is only enforced after the values within the shape card have been edited (ex: changing the dimensions to 4x5x5, closing and exiting the shape card menu, then reopening it and setting it back to 5x5x5).
Steps to reproduce: Set the maxShieldDimension config option to a value less than 5 in rftools.cfg (I set mine to 0 during testing). Set up an rftools shield projector with power. Then craft a shape card but do not edit any of its dimensions. Insert the shape card into the shield projector either via right click or via the projector gui, then activate the shield projector with a wrench. You will see that even though the maxShieldDimension config option is set to a value less than 5, a 5x5x5 shield will still form. Then take the shape card out of the projector and change its dimensions to any value (4x5x5 for example), close the shape card gui, open it again, and set the dimensions back to 5x5x5. Now when the card is reinserted into the shield projector and the shield projector is activated, the maxShieldDimension config option will be enforced properly and a shield will no longer form.
Versions:
- Minecraft: 1.12.2
- Forge: 14.23.5.2855
- McJtyLib: 3.5.4
- RFTools: 7.73