Skip to content

FOV and Block Speed Toggle Config (1.21)#4845

Open
SakuraKitsurugi wants to merge 2 commits into
GregTechCEu:1.21from
SakuraKitsurugi:feature/pov_and_block_speed_config_1_21
Open

FOV and Block Speed Toggle Config (1.21)#4845
SakuraKitsurugi wants to merge 2 commits into
GregTechCEu:1.21from
SakuraKitsurugi:feature/pov_and_block_speed_config_1_21

Conversation

@SakuraKitsurugi
Copy link
Copy Markdown

What

Adds 2 configs:

  1. Allows players to disable FOV changes from blocks that modify player speed.
  2. Allows players to disable speed change from blocks that modify player speed.

Implementation Details

  • Readded @YoungOnionMC's Concrete Block FOV speed code and modified it to not break due to null .get.
  • Added one client and one gameplay config in ConfigHolder.java
  • Added an early return in playerTickEvent(TickEvent.PlayerTickEvent event)
  • Added a config check in getValueWithoutWalkingBoost(AttributeInstance attrib) that sets FOV to normal as it forces BLOCK_SPEED_BOOST to be included in the calculations.

How Was This Tested

Additional Information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant