Commit Graph
383 Commits
Author SHA1 Message Date
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 f446ea280f quick fix : Condition is covered by further condition 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 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 d44b7ece32 quick fix : Redundant local variable 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
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 ab8c7869a9 quick fix : Unnecessary enum modifier 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
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
bb87654862 Fix slimeboots & slimesling (#63)
* Fix slimeboots & slimesling
* Use vec3 instead of Vector3d which isn't found on the server
* set entity.motionXYZ manually, as setVelocity is ClientOnly

* spotlessApply (#64)

Co-authored-by: Jason Mitchell <[email protected]>
Co-authored-by: GitHub GTNH Actions <>

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-01-04 16:36:50 +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
DrParadox7 18bfeaff32 Balance Additions (#53)
-Added Clay Patterns:
Single use patterns for smeltery that supports only tools not requiring a tool forge.
Currently unobtainable since I'll leave that to modpack creators.

-Added Molten Quartz:
A useful material for gating stuff behind the nether.
Just melt quartz or quartz block.
2022-09-18 10:57:03 +02:00
miozune e82f2eb4c9 Add null check (#50) 2022-08-04 08:07:59 +07:00
Alkalus e77d237649 Added Slime Boots & Slimesling. (#44)
* Added Slime Boots & Slimesling.

* Added tooltip to Slime Boots on how to stop bouncing.
Added tooltip to Slimesling.
2022-02-20 21:32:57 +01:00
miozune 3394029e1d Add a way to ignore NBT in casting recipes (#43)
* Add a way to ignore NBT in casting recipes
* use WILDCARD_VALUE
* fix NPE
2022-02-07 20:35:17 -08:00
D-Cysteine bfac3223cd Fall back for missing material 2021-10-03 20:35:19 -06:00
Arseny Spiridonov 50cd4115c2 Fixed few issues:
- https://github.com/SlimeKnights/TinkersConstruct/issues/3593
- https://github.com/SlimeKnights/TinkersConstruct/issues/2760
- https://github.com/SlimeKnights/TinkersConstruct/issues/1795
- Potion effect from Battleaxe can be added only by server
2020-09-23 20:03:53 +07: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
Kortako 0708d8054a Fixed issue with crossbow not being able to attack an enemy the player was too close to when in the battlegear slot. 2018-03-06 12:09:10 -08:00
Kortako a15044c435 Tinkers bows in Battlegear slots #2491
Added ability to equip Tinker's bows/crossbow/throwables to Battlegear slots.  Bows will only look in the same offhand, or the main inventory for ammo.
https://github.com/GTNewHorizons/NewHorizons/issues/2491
2018-02-21 05:51:18 -08: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
Bernhard Bonigl 455b92eb13 Add recipe sorting info for ShapelessToolRecipe (chiseling) #1574 2015-05-10 13:10:34 +02:00
Bernhard Bonigl 6361efc825 Add an extra check to projectile loading that ensures that the contained item is still valid, in case something got scrambled. 2015-05-10 13:07:07 +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 992b2a893a Change projectile behaviour with reinforced to not hit stuff multiple times and teleport around #1520 2015-04-13 09:09:52 +02:00
Bernhard Bonigl 0198ba8012 Fluid-API fixes for Forge 1355+ 2015-04-10 11:49:04 +02:00
Bernhard Bonigl 64217dcf27 Add an exception for drying rack recipies to work with frying-pan kills 2015-04-09 21:30:58 +02:00
Bernhard Bonigl 5d4d6466cf Changed the logic behind picking up ammo on the ground. Basically the base stats and composition has to be the same for an entity to be able to be picked up.
Small changes to the NBT that have nothing to do with the actual tool don't prevent picking them up anymore that way.
2015-04-03 20:13:10 +02:00
Bernhard Bonigl 03ece540e6 More verbose ammo-stacking when picking up ammo. Should fix projectiles not being pickupable (that is a word now) after they got xp. 2015-04-03 19:07:39 +02: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 59553174f6 Fix a possible crash when minecraft derps its item-in-use for players 2015-02-22 00:25:36 +01:00
Bernhard Bonigl d1f86adb58 Add a cancelable ModifyEvent that's called when a modifier is getting applied. 2015-02-21 22:01:11 +01:00