Commit Graph
59 Commits
Author SHA1 Message Date
Alexdoru 60f7add07f quick fix : Explicit type can be replaced with <> 2023-01-28 18:02:41 -08: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
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
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 28583d6a8b Fix Extra-Block harvests not giving XP 2015-02-26 22:54:42 +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 824ec2dc55 Fire block break events for extra blocks broken from AOE tools #1346 2015-01-18 20:17:53 +01:00
Bernhard Bonigl f8a0520f35 Possible fix for the endless recursions that sometimes seem to happen with AOE tools. #1213 2014-12-04 19:16:14 +01:00
Bernhard Bonigl 990a55aca5 Give Harvest Tools the proper toolclass callback 2014-11-01 23:02:22 +01:00
Michael Lydeamore 1db5375d35 Added /dev/null functionality
Moved finding to TinkerTools
2014-10-25 17:01:53 +10:30
Bernhard Bonigl cbe57a08e1 Call the callbacks on tools when breaking blocks when breaking extra blocks with AOE tools. Fixes extra-blocks harvested not using up durability. #1089 2014-10-15 23:36:27 +02:00
Bernhard Bonigl fc35996010 More work on the block breaking of AOE Tools: Really fast tools now break in AOE correctly. Changed behaviour to emulate the correct behaviour, but don't call the recursive block breaks. Furthermore, send packets causing updates for each AOE block broken. This should prevent clientside ghost blocks because the client is breaking blocks that it can't break yet on the server.
#1072
2014-10-14 21:39:26 +02:00
Bernhard Bonigl d89fd46d4c Welcome back, old patternchest. Go push the new one already, @alexbegt :P 2014-10-06 10:24:22 +02:00
Bernhard Bonigl bb652931a6 AOE Tools now only break up to 10x harder blocks with it. (Yes, 10. believe me, you wouldn't like any lower value.)
That mean stone breaking obsidian is not a thing anymore
2014-10-06 09:43:57 +02:00
Bernhard Bonigl 15902fbf5d Fix placing blocks with rightclick with tools not respecting creative mode #1011 2014-09-23 18:07:08 +02:00
Bernhard Bonigl 61e2f1a0c3 Fix break-speed not taking harvest-tool for blocks into account (-> doesn't work with custom materials) and AOE tools not taking it into account either. 2014-09-19 22:02:29 +02:00
Bernhard Bonigl 29f72ed357 Make AOE tools creative-mode compatible again 2014-09-17 15:59:28 +02:00
Bernhard Bonigl 619bfdb1f1 Adjust tools to new blockbreak code stuff. Yay for proper calls. 2014-09-17 15:32:51 +02:00
Bernhard Bonigl 8773232660 More fixes to AOE block harvesting. effective materials etc. 2014-09-17 14:27:52 +02:00
Bernhard Bonigl b74776dc05 Backup Commit: HarvestTools and Hammer have exact vanilla blockbreaking behaviour, yay 2014-09-17 10:59:47 +02:00
Bernhard Bonigl 218f282786 Throw custom block breaking code overboard since the forge code can handle it quite well nowadays. No change to AOE-Tools yet. 2014-09-16 23:47:54 +02:00
Bernhard Bonigl da996301c4 Adjust block breaking code to use vanilla behaviour. Aoe-Tools currently don't work 2014-09-16 18:49:56 +02:00
Arthur Uzulin 80efde613a The return of achievements
- Re-added achievements
- Organised all imports (seemed all over the place)
- Formatted all code (seemed very combined, used the TinkerStyle)
2014-09-09 18:30:15 +10:00
Bernhard Bonigl f6e6798f8d Fire blockbreak event 2014-09-02 17:02:03 +02:00
Bernhard Bonigl 2dd426f1d7 Unify tool speed calculation in one accessible place, instead of having the same code floating around 3 times. 2014-08-28 14:29:12 +02:00
mDiyo 5b56d5e392 Buff redstone mod, refactor broad tools to match
Cherry-picked from 34a4c8c80f969cafd696b41d963c2a041347d4cd

Conflicts:
	src/main/java/tconstruct/common/TProxyCommon.java
	src/main/java/tconstruct/items/tools/Excavator.java
	src/main/java/tconstruct/items/tools/Hammer.java
	src/main/java/tconstruct/items/tools/LumberAxe.java
	src/main/java/tconstruct/library/tools/HarvestTool.java
	src/main/java/tconstruct/modifiers/tools/ModLapis.java
	src/main/java/tconstruct/modifiers/tools/ModRedstone.java
	src/main/java/tconstruct/tools/gui/ToolStationGui.java
2014-08-28 01:27:39 -07:00
Bernhard Bonigl 46d84095cc Send dig packets to synchronize states after breaking blocks. (Should reduce ghost-block problems with AOE tools) 2014-08-23 22:04:49 +02:00
Bernhard Bonigl 699b0f5796 Break blocks on clientside. Eliminates server latency. 2014-08-23 22:04:07 +02:00
Bernhard Bonigl ab14d03834 Fix harvest-type being ignored in digspeed-calculation. This meant that hatchets could break ores the same speed as wood blocks, picks wood with the same speed as stone, etc. #897 2014-08-21 21:31:03 +02:00
jodamm 2f5910c08e removed localBlock and localMeta in HarvestTool.java because block and localBlock is always the same.
moved the block harvesting in own method
fixes some blocks not droping or not breaking at all.
fixes exp drop with silktouch
2014-07-30 21:33:42 +02:00
mDiyo bb70b06b98 Add comment for magic number in HarvestTool 2014-07-29 08:00:18 -08:00
Glassmaker d76117d559 Adds dropping experiance when breaking blocks, example Coal and Lappis 2014-07-28 00:39:37 +03:00
Alexander Behrhof ea634c139f Reverting "Fix some block breaking problems". 2014-07-21 15:07:16 -04:00
Bernhard Bonigl 92f6e1405f Add a public isEffective to HarvestTool. Allows outside checking whether a tool is effective vs. a material. 2014-07-15 21:18:09 +02:00
Bernhard Bonigl 313b49181f Make calculateStrength of harvestTool public (was package? forgotten access modifier?) 2014-07-15 20:59:11 +02:00
mDiyo c525493545 Update modifiers, start travellers gear 2014-06-30 22:26:00 -08:00
blue42u b16b79a823 Fix some block breaking problems.
- Bibliocraft locks are respected.
- Fixes Thaumcraft node drops.
- Fixes strange auto-smelt drops sometimes.
- Probably fixes sync issues somewhere.
2014-06-14 09:31:39 -05:00
Alexander b6ba8700ad Fix some bugs, and format code (Commented out woolslabs for now) 2014-04-03 22:28:37 -04:00
Glassmaker 0f470807e5 Added itemstack sensitive version for future use 2014-03-19 19:55:37 +03:00
Glassmaker 4a55e7f0d3 Fixes Harvest tool speed issues 2014-03-19 19:38:35 +03:00
Progwml6 66a4ece284 port in everything from 1.6 but labotimizetools(will do that later this weekend) 2014-03-15 07:11:06 -04:00
Alexander 5d4e38c0cb Upload my Code Changes/Format/imports 2014-02-16 14:23:50 -05:00
Glassmaker b261bc4278 Fixed Harvest tools not breaking blocks not in effective list 2014-02-15 20:34:40 +03:00
Progwml6 c57abab274 remove debug prntlines 2014-02-15 11:02:30 -05:00
Arthur Uzulin e24b53a26e Fixed NPE when breaking blocks with undefined HarvestTool 2014-02-15 23:56:44 +11:00
Progwml6 87e687d4ad swap in some of the logic from the hammer to solve tool issue 2014-02-15 06:50:36 -05:00
Progwml6 a8d8a568fa fix tools not checking harvest type on block breaking 2014-02-14 22:50:51 -05:00
Alexander 2a2f84ee88 Format code again + organize imports 2014-02-05 10:28:54 -05:00