Alexdoru
42c27d7cd9
delete unused event registration ( #235 )
2025-12-11 06:57:36 +01:00
Alexdoru
41a2e67900
avoid creation of empty NBT tags in WeaponryHandler#boneanaBuilding ( #233 )
2025-12-01 19:05:14 +01:00
Alexdoru
4813c5b9cc
fix crash because some mods shade the TabRegistry class... ( #204 )
2025-08-12 22:07:06 +02:00
Alexdoru
0d412603ab
use EnumChatFormatting and not Realms enum to avoid crash ( #192 )
2025-07-21 11:05:17 +02:00
Alexdoru
53e0de0624
remove reflection after ismodloaded check ( #190 )
2025-07-19 02:27:00 +02:00
Alexdoru and Martin Robertz
d696ad50c3
use updated battlegear2 api ( #99 )
...
* use updated battlegear2 api
* Update dependencies.gradle
---------
Co-authored-by: Martin Robertz <dream-master@gmx.net >
2023-10-14 20:38:39 +02:00
Alexdoru
098783fa1e
Fix health bar renderer ( #97 )
...
* delete unused locals
* add some code that has been forgotten when copying and overriding the vanilla renderHealth method
* create dedicated class HealthBarRenderer extending Gui to stop copy-pasting certain vanilla methods
* fix renegeration hearts moving when the game is paused
* only bind tinkers hearts textures if it's actually going to draw tinkers' hearts
* stop drawing vanilla hearts when they are hidden by tinkers' heart being drawn on top
* fix tinker's half heart not moving with regeneration
* fix drawing all tinkers' hearts on top of each others, and now only draw the top most hearts
* add comment to help with debugging
2023-09-24 19:31:03 +02:00
Alexdoru
abc424b02d
fix health bar shaking like crazy when the player has regeneration ( #96 )
2023-09-13 16:15:31 +02:00
Alexdoru and OneEyeMaker
50bd690204
Revert signature changes of public methods that caused crashes ( #74 )
...
* restore previous public method signature to prevent crash
* don't register the event if vanilla config
* revert signature changes
* Restore original calculation logic
---------
Co-authored-by: OneEyeMaker <oneeyemaker@gmail.com >
2023-02-13 16:34:38 +01:00
Alexdoru
531e33765e
cache some Loader.isModLoaded calls ( #72 )
2023-02-08 21:11:39 +01:00
Alexdoru
301119323f
exit RenderGameOverlayEvent earlier
2023-01-28 18:02:41 -08:00
Alexdoru
e16bed0ee1
use the ScaledResolution of the event instead of creating a new one
2023-01-28 18:02:41 -08:00
Alexdoru
95d58be867
spotless
2023-01-28 18:02:41 -08:00
Alexdoru
36f63a7690
quick fix : Raw use of parameterized class
2023-01-28 18:02:41 -08:00
Alexdoru
c370ce93d5
iterate over Map.entrySet() rather than Map.keyset() and use get() on each iteration
2023-01-28 18:02:41 -08:00
Alexdoru
83f54f1e97
quick fixes : enhanced for loop
2023-01-28 18:02:41 -08:00
Alexdoru
59f3b5b72a
spotless
2023-01-28 18:02:41 -08:00
Alexdoru
d12e70dd52
quick fix : Constant conditions & exceptions
2023-01-28 18:02:41 -08:00
Alexdoru
2b6b01314d
quick fix : Unused assignment
2023-01-28 18:02:41 -08:00
Alexdoru
6bf15fdfe3
quick fix : Redundant type cast
2023-01-28 18:02:41 -08:00
Alexdoru
7e0c202772
quick fix : Redundant array creation for calling varargs method
2023-01-28 18:02:41 -08:00
Alexdoru
01655b93c8
quick fix : Duplicate branches in 'switch'
2023-01-28 18:02:41 -08:00
Alexdoru
0657a754e2
quick fix : Simplifiable conditional expression
2023-01-28 18:02:41 -08:00
Alexdoru
cdc7dcf5d0
quick fix : optimize imports
2023-01-28 18:02:41 -08:00
Alexdoru
ae363450b1
quick fix : Private field may be 'final'
2023-01-28 18:02:41 -08:00
Alexdoru
b1c2569992
quick fix : Access static member via instance reference
2023-01-28 18:02:41 -08:00
Alexdoru
983ca22d97
spotless
2023-01-28 18:02:41 -08:00
Alexdoru
abda4a244b
potential bug ? ItemSTack was used instead of LandmineStack
2023-01-28 18:02:41 -08:00
Alexdoru
544f51e532
quick fix : String comparison using '==', instead of 'equals()'
2023-01-28 18:02:41 -08:00
Alexdoru
fbccf4e087
quick fix : Statement with empty body
2023-01-28 18:02:41 -08:00
Alexdoru
3f0854baeb
delete unused float[65536] array in SlimeBounceHandler
2023-01-28 18:02:41 -08:00
Alexdoru
98f3da6131
stop calling EnvironmentChecks and remove dead code in EnvironmentChecks
2023-01-28 18:02:41 -08:00
Alexdoru
dba65e38dd
quick fix : Can be replaced with single 'Map.getOrDefault' method call
2023-01-28 18:02:41 -08:00
Alexdoru
3d1489401c
quick fix : Collections.sort() can be replaced with List.sort()
2023-01-28 18:02:41 -08:00
Alexdoru
bbaba41d83
quick fix : Unnecessary 'return' statement
2023-01-28 18:02:41 -08:00
Alexdoru
67c8b53cf1
quick fix : Unnecessary 'continue' statement
2023-01-28 18:02:41 -08:00
Alexdoru
379d0cb168
quick fix : Too weak variable type leads to unnecessary cast
2023-01-28 18:02:41 -08:00
Alexdoru
a7bc4185c7
quick fix : 'StringBuilder' can be replaced with 'String'
2023-01-28 18:02:41 -08:00
Alexdoru
2d13e6185e
quick fix : Redundant type cast
2023-01-28 18:02:41 -08:00
Alexdoru
b34eec4dea
quick fix : Redundant Collection operation
2023-01-28 18:02:41 -08:00
Alexdoru
14f970318b
quick fix : Redundant String operation
2023-01-28 18:02:41 -08:00
Alexdoru
d4ffbd85f4
quick fix : Redundant array creation
2023-01-28 18:02:41 -08:00
Alexdoru
aa1b25c8e5
quick fix : Multiple occurrences of the same expression
2023-01-28 18:02:41 -08:00
Alexdoru
173eab9a0e
quick fix : Manual min/max calculation
2023-01-28 18:02:41 -08:00
Alexdoru
114fce2770
quick fix : Duplicate branches in 'switch'
2023-01-28 18:02:41 -08:00
Alexdoru
f446ea280f
quick fix : Condition is covered by further condition
2023-01-28 18:02:41 -08:00
Alexdoru
4ad67bc34b
quick fix : 'if' can be replaced with 'switch'
2023-01-28 18:02:41 -08:00
Alexdoru
9cfd723ea3
quick fix : Raw use of parameterized class
2023-01-28 18:02:41 -08:00
Alexdoru
f384a4fe28
quick fix : Redundant 'if' statement
2023-01-28 18:02:41 -08:00
Alexdoru
28b094ea1a
quick fix : Minimum 'switch' branches
2023-01-28 18:02:41 -08:00
Alexdoru
350177b5c9
quick fix : Access static member via instance reference
2023-01-28 18:02:41 -08:00
Alexdoru
2f47fd5545
quick fix : Redundant 'throws' clause
2023-01-28 18:02:41 -08:00
Alexdoru
fc54dde7ce
quick fix : 'if' statement with identical branches
2023-01-28 18:02:41 -08:00
Alexdoru
04c7d32b53
quick fix : 'static' method declared 'final'
2023-01-28 18:02:41 -08:00
Alexdoru
d44b7ece32
quick fix : Redundant local variable
2023-01-28 18:02:41 -08:00
Alexdoru
25522dae75
quick fix : Empty 'try' block
2023-01-28 18:02:41 -08:00
Alexdoru
3a2b50acd5
quick fix : Renamed catch block parameter to ignored
2023-01-28 18:02:41 -08:00
Alexdoru
60f7add07f
quick fix : Explicit type can be replaced with <>
2023-01-28 18:02:41 -08:00
Alexdoru
7abe2f5182
quick fix : 'while' loop replaceable with enhanced 'for' loop
2023-01-28 18:02:41 -08:00
Alexdoru
d6b69264b9
quick fix : Unnecessary boxing / unboxing
2023-01-28 18:02:41 -08:00
Alexdoru
83a1fa7957
quick fix : String concatenation in loop
2023-01-28 18:02:41 -08:00
Alexdoru
2312e2f4c9
quick fix : Integer multiplication or shift implicitly cast to long
2023-01-28 18:02:41 -08:00
Alexdoru
f677a4c5b7
quick fix : Wrapper type may be primitive
2023-01-28 18:02:41 -08:00
Alexdoru
8e1425203e
quick fix : Bulk operation can be used instead of iteration
2023-01-28 18:02:41 -08:00
Alexdoru
f9c44ee3e5
quick fix : Unnecessary interface modifier
2023-01-28 18:02:41 -08:00
Alexdoru
b84b6e58bf
quick fix : Unnecessary semicolon
2023-01-28 18:02:41 -08:00
Alexdoru
ab8c7869a9
quick fix : Unnecessary enum modifier
2023-01-28 18:02:41 -08:00
Alexdoru
825643a7c4
quick fix : C-style array declaration
2023-01-28 18:02:41 -08:00
Alexdoru
b28b754ea9
quick fix : Inner class may be 'static'
2023-01-28 18:02:41 -08:00
Alexdoru
7a908c2bf5
condition is always false and Hodgepodge already cancels crosshair render
2023-01-28 18:02:41 -08:00
Alexdoru
66bf122138
keybinds ( #67 )
...
* unbind keybinds by default
* spotless
2023-01-27 20:33:01 +01:00
Alexdoru
1789e14270
stop toggling the traveller's belt hotbar swap in the NEI GUI ( #52 )
...
* format ArmorControls.java
* return value not used
* don't need to check keybinds for mouse input
* used the Keybind class properly to stop triggering key actions when keys are not binded
* stop toggling the traveller's belt hotbar swap in the NEI hud
2022-09-04 09:23:55 +02:00
Alexdoru
13a9ebee65
fix bug where it triggers key actions when you have keybinds set to none ( #51 )
...
* format ArmorControls.java
* return value not used
* don't need to check keybinds for mouse input
* used the Keybind class properly to stop triggering key actions when keys are not binded
2022-09-01 11:33:00 +02:00