Commit Graph
3284 Commits
Author SHA1 Message Date
pupnewfster be268b5f87 Finish changing RenderLogisticalTransporter to GlStateManager 2019-07-08 11:44:09 -04:00
pupnewfster beb18b5bbf Improve fps a good bit by starting to change GL11 to GlStateManager 2019-07-08 11:44:09 -04:00
pupnewfster de9829623f Slightly cleanup transporterimpl update code 2019-07-08 11:44:09 -04:00
pupnewfster 3485c8bf34 Slightly improve performance of logistical transporter item rendering 2019-07-08 11:44:00 -04:00
Thiakil 8de341d3c4 Give Entangloporter its own config for fluid/gas buffer instead of using ultimate tank's output config. #5558 2019-07-08 18:54:13 +08:00
ToMe25 b85a908b29 Implement #5054(Coal Gasification) (#5547)
* Implement Coal Gasification in the Main File

* Implement Coal Gasification in the OreDict Manager

* Remove the Coal Block Gasification Recipe

as it gets moved to the OreDictManager for more compatibility.

* Add some more Coal Gasification compat
2019-07-06 17:06:57 +08:00
Thiakil ac70101edf Merge PR Optimized Component Ejector. Closes #5537
Additional: half tickDelay in ejector component since we're only ejecting on a timer now
2019-07-06 12:22:32 +08:00
Thiakil 7a726f3695 Merge PR IFluidHandlerWrapper implementation cleanup. Closes #5551 2019-07-06 12:20:18 +08:00
Xander 05166ee916 Assemblicator Fixes for Transforming recipes (#5542)
* properly use IRecipe.getRemainingItems

* Fix formulaic assemblicator gui, not properly comparing itemstacks against ingredient

* Change some things to using variables to make it a bit easier to keep track of what is going on

* use constants for Assemblicator inventory slot numbers

* Check if it is a valid recipe when block gets loaded, so that it sends the proper information to the client
2019-07-06 11:42:52 +08:00
pupnewfster 0557a8bd23 Fix various height checks for the different solar devices 2019-07-01 12:52:31 -04:00
pupnewfster 3750d42c3e Fix null tile warnings from logistical sorters not connected to things on both sides when set to auto. 2019-07-01 12:41:04 -04:00
Richard Freimer c3be258c46 Overwrite getBlockFaceShape for various blocks (#5539)
* Return block face shape data for various blocks. Fixes #5530

* Allow for bounding block tile owners to control the face shape
2019-06-29 12:12:58 +08:00
Robert WC Seifert de705af546 Added checks for is block loaded to several methods (#5533) 2019-06-27 13:49:45 -04:00
Richard Freimer d217a545ca Ignore amounts for inputItemMatches (#5532) 2019-06-27 13:43:26 -04:00
Robert WC Seifert 5d17d706c0 Reworked PipeUtils and GasUtils side access (#5529)
These two methods were ghost loading chunks causing issues. Rather than simply adding a is loaded check I reworked the flow to be more reusable and clearer in general. The extra code can be used in other places to improve the code base.
2019-06-27 13:42:10 -04:00
Thiakil f00fe44124 Prevent OreDict queries from creating empty entries since some mods don't check that. Closes #5524 2019-06-27 19:46:43 +08:00
Thiakil a122434d6a add more debugging info for bad itemhandler assertion 2019-06-25 17:50:18 +08:00
Raul CG 9e181fae36 es_es.lang update and fixes (#5528)
* Update with corrections and missing translations

Corrections of spelling, syntax and expression errors, according to industrial processes and IUPAC specifications for the spanish language.
Completed up to line 332

* Minor corrections and fixes

1- Minor corrections and fixes in previous patch.
2- Translation of Slurry: Lechada > Espuma flotada > Lixiviado
Translation of Clean Slurry: Lechada pura > Espuma flotada pura > Lixiviado limpio (I cant justify term pura[pure] because you will get dirty dust latter from this mineral).
Wright terms for this chemical process in Hidrometallurgy (PDF in spanish) https://riunet.upv.es/bitstream/handle/10251/68321/Mu%C3%B1oz%20-%20Extracci%C3%B3n%20de%20metales%20por%20hidrometalurgia%3A%20Procesamiento%20de%20cobre%20y%20cinc.pdf
3- Checked up to the line 826 (corrections and added missing lines)

* Finished corrections and fixed

Checked and corrected text up to the line 1167, lines compared with en_us.lang to add missing lines. Fixed misspellings and syntax errors.
2019-06-22 13:48:49 +08:00
pupnewfster 91d3f6f6c0 Update various outdated lang keys pointed out by #5520 2019-06-13 19:58:08 -04:00
karakufire 5fe806e2d4 update ja_jp.lang (#5520) 2019-06-13 19:41:38 -04:00
pupnewfster 9702af8403 Temporarily change a few block's opaqueness back to false to fix some rendering changes they caused. 2019-06-13 19:40:08 -04:00
Richard Freimer b49e45a03d Void gases from machines on load if invalid, as discussed in #5502 (#5519) 2019-06-12 17:55:36 -04:00
pupnewfster d10a623e51 Fix a few calculations for in transit transporter calculations 2019-06-11 14:03:39 -04:00
pupnewfster 8e8ff1d453 Glass is supposed to have fullBlock as false for the lighting engine 2019-06-09 20:53:06 -04:00
Xander 8bdc452c7c fix bad BlockBasicType constructor param names 2019-06-09 23:03:18 +08:00
ToMe25 20b612bae9 BlockBasic Property changes (#5484)
* Make most BasicBlocks Opaque
* Fix some Opacity Stuff
* Changed Osmium Block, Bronze Block, Steel Block and Block Basic Standard Resistance
* Changed Osmium Block Hardness
2019-06-09 20:17:21 +08:00
Richard Freimer c9a9acbb81 Simulate amount the network has room for, rather than the amount that rate it can transfer at (#5513)
* Simulate amount the network has room for, rather than the amount that rate it can transfer at. Fixes #5512

* Double check the insert to the pipe/tube with a simulation
2019-06-09 00:20:05 -04:00
pupnewfster 180183fcbd Fix purification chamber being able to accept wrong gases directly from IGasItems #5502
Also improved handling overall for how IGasItem is treated by the GasConversionHandler, so that we better obey the gastank we are going to try and insert into
2019-06-08 11:28:38 -04:00
pupnewfster 33957bde59 Fix a tiny bit of math broken by #5496 2019-06-08 10:22:00 -04:00
pupnewfster de9450a863 Fix API version number as #5496 had not been merged for the version it was bumping API to 2019-06-08 09:15:20 -04:00
Richard Freimer 4dd1e81c27 Use sendToAllTracking for update packets (#5496)
* Don't check Y height for sending update packets. Seems to fix compat with cubic chunks #5262

* First pass transitioning from using sendToReceivers to using built in forge stuff

* Make code cleaner to read with helper methods

* Fix accidental extra code from a local branch issue I had

* Further improve readability

* Rename method

* shortcut if player not in same dimension & use EMP.server for the reference
2019-06-08 16:51:37 +08:00
Thiakil 55e8980b4a Add non null params to the super call on DummyWorld, add try/catch around its construction in case something else goes bad 2019-06-08 12:51:16 +08:00
Thiakil a30326ba41 Run OreDictManager recipes at lowest priority to try catch mods adding to oredict during recipe event 2019-06-08 12:50:00 +08:00
pupnewfster 33cc2033ff Fix copy paste error making removeAllRecipes for metallurgic infuser not work. Closes #5507 2019-06-07 17:24:38 -04:00
Thiakil 75d1fd7f12 add DummyWorld to use in Log crafting recipe checks 2019-06-07 21:55:44 +08:00
Thiakil 28c13c8322 Use reference map instead of EnumMap for nullable key. Closes #5504 2019-06-07 21:37:22 +08:00
Thiakil 9132aa7f32 ensure canConnectMutual checks a block is loaded. Closes #5505 2019-06-07 20:57:04 +08:00
Thiakil 68b448b62c fix incorrect ArrayList constructor usage 2019-06-04 09:56:43 +08:00
Thiakil cab79bfe06 attempt to fix race conditions with FoamFix parallel model loading, crash if fields aren't found (https://discordapp.com/channels/554379889122213888/560583846509281280/584510666883334144) 2019-06-02 11:25:52 +08:00
Richard Freimer d19f1cd7eb Transporter performance improvements (#5488)
* Improve performance of predicted insert. Don't copy stacks nearly as often

* Cache what stack is in the slots and update comments

* Cleanup up pathfinder code some

* Clean up a bit more mainly TileComponentEjector

* Fix crash caused by an earlier commit

* Minor cleanup

* Minor cleanup

* Slightly clean up TileEntityBin and fix creative bin auto eject lowering item count

* Partially cleanup getpaths, and prep work for better handling of AcceptorData with mulitple TransitResponses

* Scratch previous attempted idea of combining responses

* Use EnumMap instead of HashMap for keeping track of side data for Ejector and prep for an eventual change to TransitResponse of inserting into more than one slot at a time if the stack would be best split among multiple

* Change some more HashMaps to EnumMaps

* Make it easier to read component ejector for gas and fluids

* Inline getStacksToDest so that it can bail even earlier in cases when destination is full

* Don't create a copy of the stack if it won't be inserted AND also fix having broken inserting across multiple slots

* Replace a bunch of other HashMap instances with EnumMap where possible

* Make a couple sets more generic

* Use Int2ObjectMap for int based cache & tidy clamping

* ensure EnumMap doesnt throw NPE

* FastUtil map changes
2019-05-28 09:31:33 -04:00
Richard Freimer 72951d2c66 Cleanup a bit of infusion code (#5493)
* Cleanup a bit of infusion code

* Empty item stacks already return 0 for their count

* Go back to not assuming null and empty tag are the same

* Reorder which order the arguments are passed to equalsWildcard for consistency with the rest of the class as it is a symmetrical method anyways
2019-05-27 12:51:50 -04:00
Richard Freimer eb2de11b72 Check ItemStack NBT for comparison in more places (#5491)
* Check NBT in a bunch more item comparision checks
* Fix Gas conversion checking stack size when comparing itemstacks
2019-05-27 12:08:09 +08:00
Richard Freimer 7438ad4d9e Use Recipe Generics in more places, and some general readability improvements (#5490)
* Use Recipe generics in more places

* Use Recipe generics in even more places

* Use Recipe generics for IMCHandler

* Turns out I was wrong about the old enum names being used

* More Recipe generics for getting recipes

* Pass MachineType as constructor parameter up the chain

* Minor readability cleanup

* Use method to get block name while in external classes

* Improve readability of some references to internal enum classes

* More missed recipe generics to reduce number of casts

* Make sure to check NBT for the recipes, and switch back to for loops from streams
2019-05-25 10:42:21 -04:00
Thiakil 8861e52abf Finish the Recipe generics port 2019-05-22 23:00:33 +08:00
pupnewfster 99df6a3926 Fix creative gas tank actually withdrawing gas when auto eject is false and a tube is pulling out of it 2019-05-22 09:53:08 -04:00
Thiakil 253be28e8d minor nullable annotation for completeness 2019-05-22 21:45:26 +08:00
Thiakil 65ed1cf062 some turbine nullable fluidstack fixes. Closes #5485 2019-05-22 21:36:10 +08:00
pupnewfster b4572a2023 Add support for adding/removing item to gas conversions via crafttweaker
also run formatter to fix spacing/ensure import order is correct
2019-05-20 13:21:42 -04:00
ToMe25 d6bca945fe Make Refined Obsidian usable for Nether Portals (#5479)
* Make Refined Obsidian usable for Nether Portals

* Fix spacing changes

* Remove some duplicate code

* Fix a small param passing error
2019-05-20 10:07:52 -04:00
Richard Freimer 2809912037 Induction matrix optimization (#5462)
* Initial work improving performance of Induction Matrix

* Have the MatrixData handle more things internally

* Internalize more logic in MatrixData

* Cleanup readability of two methods

* Initial work at queueing energy addition/removal to the matrix. Allows for only reading/writing to the cells once per tick instead of potentially multiple times.

* Streamline the energy queuing, add some comments about it, and fix some backwards logic

* Improvements to bounds by allowing passing the simulation variable
Makes the code cleaner to read

* Better handling if something passes a negative value to add/remove

* Cleanup UpdateProtocol loopThrough method

* Minor cleanup/spacing of UpdateProtocol. Also save queued matrix energy when structure gets destroyed.

* Minor cleanup/spacing of various update protocols to improve readability

* Minorly improve readability of TileEntityMultiblock

* Remove some TODO's as it already properly handles removing/adding cells

* Fix creative energy cube output limit

* Fix having added extra parenthesis in merge

* Add basic comparator support for Induction Port

* Cleanup the variables slightly
2019-05-20 10:03:10 -04:00