Commit Graph
231 Commits
Author SHA1 Message Date
Lyfts a5bec6c22b cleanup after enabling modern & generic. Primarily changing raw lists to their correct type, changing to pattern variable & enhanced switch and removing unused/unreachable code + ancient comments. 2024-05-16 18:51:58 +02:00
Martin Robertz 3ef4a5e259 sa 2023-09-25 00:17:50 +02:00
Martin Robertz 8500181322 missing imports 2023-09-25 00:17:10 +02:00
Martin Robertz 265fc8cc15 missing imports 2023-09-25 00:12:38 +02:00
Martin Robertz 47a5b9391a sa+wci 2023-09-24 22:57:55 +02:00
Quetz4l 0519eee1d9 tinker's + ofanix (#92)
* tinker's + ofanix
tinker's tools can place cobblestone with ztones ofanix

* fix ofanix
* declaring a global variable instead of a local one for ofanix
2023-09-08 17:46:18 +02:00
miozuneGitHub GTNH Actionsgithub-actions[bot]
69bb974420 Use compileOnlyApi for CoFH (#84)
* Use compileOnlyApi for CoFH

* spotlessApply (#85)

Co-authored-by: GitHub GTNH Actions <>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-15 08:07:18 +02:00
AlexdoruandOneEyeMaker 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 <[email protected]>
2023-02-13 16:34:38 +01:00
unix-supremacistandAlex Ponebshek 3e2ba6ac16 adding the config options from the tinkered constructor fork (#73)
* config option for invulnerability of dropped tools and base EntityItem despawn time

* config option to drop life canisters on death

* Added config option for dagger damage multiplier when thrown, default = 3x

* emulate vanilla behavior by default

---------

Co-authored-by: Alex Ponebshek <[email protected]>
2023-02-12 08:37:14 +01:00
Jason Mitchell 84c2239244 [ci skip] spotlessApply with the new settings 2023-01-28 18:04:28 -08:00
Alexdoru 83f54f1e97 quick fixes : enhanced for loop 2023-01-28 18:02:41 -08:00
Alexdoru 2b6b01314d quick fix : Unused assignment 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 983ca22d97 spotless 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 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 f384a4fe28 quick fix : Redundant 'if' statement 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 fc54dde7ce quick fix : 'if' statement with identical branches 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 f677a4c5b7 quick fix : Wrapper type may be primitive 2023-01-28 18:02:41 -08:00
NexusNull 54e24a25f4 Backport: Only break one block when sneaking (#65)
* only break one block on shift

* sportless

Signed-off-by: NexusNull <[email protected]>

* fixes https://github.com/GTNewHorizons/TinkersConstruct/pull/65/files/41a1ecea30cb0506d068da30c16fc27dcf64550f#r1071818922

Signed-off-by: NexusNull <[email protected]>

Signed-off-by: NexusNull <[email protected]>
2023-01-17 09:22:51 +01:00
DrParadox7 7ff7f25f73 Mod Friendly Piercing (Rapier, Arrow & Bolts) (#60)
* Mod Friendly piercing

Piercing damage converted to bonus damage equivalent to victim's armor protection (capped at diamond armor).

This prevents rapiers from bypassing immunities.

* Run SpotlessApply

* Delete commented out code
2022-12-27 09:11:45 +01:00
Raven Szewczyk 39be06c23b Fix JABBA-related issues with crafting station slots (#54)
* Fix shift-merging tools voiding items

fixes <https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/11392>

* Change 0-sized ItemStacks into null stacks in crafting station attached slots

Fixes <https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/10425>

* Update buildscript

* spotlessApply
2022-09-22 20:51:23 +02:00
Arseny Spiridonov 6bd68f13b1 Fixed a lot of NPE's and few duplication glitches
(cherry-pick from other fork)
2020-09-22 23:52:53 +07:00
Jason Mitchell 14543da225 Add a null check in case there is no current equipped item 2018-01-29 22:31:02 -08:00
Jason Mitchell d748363176 Backport lumberaxe tree chop task from later versions 2017-12-22 10:34:32 -08:00
Bernhard Bonigl dad8ab969c Fix broken tools AOE harvesting and harvesting stuff above stone level.
Due to how forge/MC does things it's not possible to prevent stone-level from being harvested without extra events.
Closes #1775
2015-10-27 19:15:06 +01:00
Bernhard Bonigl ba18f02e94 Fix possible NPE when calculating knockback.
Closes #1731
2015-08-19 17:56:17 +02:00
Vexatos a21a80e00c Fix a crash with dynamically generated tool parts (bolts) trying to get a material name shorter than 9 characters. 2015-08-10 20:23:45 +02:00
SamRaven2 395a7749cc Fix For Block Collision
Fixes Accidental Suffocation
Fixes Pillaring Issue

More Work on Fix, Torch placement

Logic Derp

Less use of instanceof
More use of actual methods

Even bigger logic derp

Collision Fix
2015-04-30 16:37:21 -04:00
Bernhard Bonigl 9ba0e69541 Rightclick on tools without function now also allows you to throw shuriken in addition to splash potions! 2015-03-10 00:38:40 +01:00
Bernhard Bonigl a544071e0e Fix killing blows not giving lifesteal #1436 2015-03-02 15:54:30 +01:00
Bernhard Bonigl 28583d6a8b Fix Extra-Block harvests not giving XP 2015-02-26 22:54:42 +01:00
Bernhard Bonigl f634389c9f Only play pickup sound for actual players (drying rack, oreberries, etc) #1315 2015-02-22 17:52:22 +01:00
Bernhard Bonigl a7d3f47f14 Followup to fix all the remaining parameters not set by 075b769db2 2015-02-22 12:08:25 +01:00
Bernhard Bonigl 075b769db2 Fix a long standing bug that caused FPS drops with bows. All tools now use our own renderer. Rendering performance overall should be increased. Honor and Glory to @skyboy for finding the cause 2015-02-21 21:50:23 +01:00
Bernhard Bonigl 4ec647243f Extra Dynamic-Sword-Skills support 2015-02-12 10:27:08 +01:00
Bernhard Bonigl 58031bb521 Default to white if a tool has a material that doesn't exist anymore 2015-02-07 17:54:00 +01:00
Bernhard Bonigl 3cd211e9f4 Fix reinforced tools not repairing with moss 2015-02-07 08:59:57 +01:00
Bernhard Bonigl ea8f1fe0c0 Zelda Sword Skills support for weapons. Somebody test this in detail. 2015-01-30 19:28:56 +01:00
Bernhard Bonigl cfebaef2c3 Fix tools being able to break every block that doesn't require a tool in adventure mode 2015-01-30 16:31:09 +01:00
Bernhard Bonigl 2812f80173 Move reinforced-calculations to the damage-dealing function from the hitting-stuff function #1367 2015-01-30 15:59:23 +01:00
Bernhard Bonigl 9d89ecd4b7 Fix a null check in damage-calculations #1355 2015-01-21 10:24:24 +01:00
Bernhard Bonigl 824ec2dc55 Fire block break events for extra blocks broken from AOE tools #1346 2015-01-18 20:17:53 +01:00
Bernhard Bonigl 506da182eb RF Api the second, also don't strip the methods, derp. 2015-01-11 20:08:16 +01:00