Commit Graph
5081 Commits
Author SHA1 Message Date
pupnewfster faef15691c bump version to 9.7.3 2019-05-02 11:19:00 -04:00
Richard Freimer d5db11eea3 Port #4952 by @danielzgtg Item drop compatibility (#5384)
* Port #4952 by @danielzgtg Item drop compatibility

* Make the dif slightly easier to read by reordering a couple things

* Extract some of the drop logic into super classes to make it easier to read what is going on

* Add missing Nonnull annotation

* Inline the patched harvest block method

* Remove unneeded listener for BlockBounding and fix bounding blocks being set to air not removing the full thing

* Make it easier to tell at a glance that it passes it as false for willHarvest

* give BlockMekanismSimple a better name
2019-05-02 11:16:26 -04:00
pupnewfster 36d1a9c501 Always request a render update because the rotation may have changed. Fixes #4942 2019-05-01 14:10:48 -04:00
Matej Zajo Kralik 36aa81dcf4 Add support for configuring machine energy storage. (#5418)
* Add support for configurable machines storage.

* Make factories and tooltips use machine storage from config. Renaming.

- Renamed config instance members, to reduce redundancy
- Made machines get Storage and Usage from MachineType
- Other miscellaneous cosmetic changes on the matter

* Update ItemBlockMachine.java

* Tweak factories to always have storage needed to run all processes.

* Add storage config to PacketConfigSync.
2019-05-01 13:15:55 -04:00
ToMe25 14d60702b6 Add some more ore processing compatibility (#5445)
* Add some more Compatibility

* Implement the requested Changes.

* Merged the two Mystical Agriculture Recipe Methods

sorry wasn't seeing that line of your comment

* Added support for BoP and Forestry Gems 

Forestry: Apatite
Biomes O' Plenty: Amber, Amethyst, Malachite and Tanzanite
2019-05-01 12:42:04 -04:00
Richard Freimer b3663a37a9 Emitting logic overhaul (#5422)
* First pass improving performance of EnergyNetwork emitting
Only sends power once per tick per accept now. Lots of comments of design included so that I have a backup of my thought process/solutions if I run into some blocker.

* Optimized implementation slightly, still more to be done

* Cleanup some comments

* Move send energy to acceptor logic to CableUtils
Replace old emit logic in CableUtils with using the newer logic

* Inline getConnections to slightly cut down on number of operations ran

* Fix a couple bugs with targets that have multiple sides
Also improve performance reducing frequency at amountPerChanged needs to be ran

* Improve performance of CableUtils.emit by faking we have one 6 sided target as opposed to having 6 one sided targets

* Allow simulating insertion into the EnergyAcceptorWrapper for IC2

* Fix using wrong value for total acceptor count when acceptors have multiple sides

* Use an EnumMap instead of a HashMap for the Target

* First pass converting gas and fluid network emission to target system

* Improve general fluid and gas emitting using the utility method
Change a couple things to using Sets rather than lists for emitting so that we can ensure each side is only done once.

* Document and cleanup method/variable names of target classes

* Start deduplicating emitting code into a EmitUtils file
Logic for Gas and Fluid emitting fully generic now

* Partially extract how we keep track of the split to make it easier to deduplicate the common code

* Start moving shifting needed to given to the targets themselves

* Use generics to deduplicate a lot of the remaining duplication in the new emitting code

* Fix having broke energy emitting and also further cleanup some code

* Half the number of loops the HeatNetwork does onUpdate

* Fix potentially divide by zero errors

* Deprecate and remove implementations of getAcceptors as it is no longer needed

* Never round up from doubles for sending power stops energy networks going negative.

* Fix more spots where we were accidentally rounding upwards/clamping improperly for energy

* Cleanup impl to use less memory and adjust better as sending if
the possible amount changed/should be adjusted
Also removed the need for a specific IntegerTypeTarget intermediary class

* Cleanup the docs of some of the changed things

* Given tickEmit is private now we already know it is only being called serverside

* Improve documentation slightly and rename a method to be more accurate

* Remove limit on IC2 given it uses doubles as well now

* Rename amountPer to amountPerTarget
2019-04-30 10:25:23 -04:00
Richard Freimer 445556fef7 Use security utils for checking access to teleporter and quantum entangloporter (#5431)
* Use security utils for checking access to teleporter and quantum entangloporter
Also add the security tab to the corresponding gui's

* Ensure tile gets saved when security mode changes
2019-04-30 22:13:25 +08:00
Richard Freimer 075673fc56 Improve Compat with TOP (#5427)
* Make TOP display full capacity of fluid and gas networks. Also fix some capabilities not returning the proper. TOP Gas integration now displays the gas color as well.

* Ensure no repercussions for getting MechanicalPipe's TOP network tanks

* Ensure no repercussions for getting PressurizedTube's TOP network tanks

* Display hydrogen with a slightly incorrect color so TOP renders properly

* Fix dynamic valve having item handler always disabled instead of just when multiblock is not made

* Fix a few itemhandlers that should not be disabled for side == null TOP compat

* Always expose networks buffer instead of local buffer if there is a network
2019-04-30 22:12:43 +08:00
pupnewfster 9692debdcf Fix desync between server and client for personal chest. Fixes #5438 2019-04-27 15:39:29 -04:00
pupnewfster dccc32db85 Check NBT for factory sorting. Fixes #5436 2019-04-27 14:55:34 -04:00
pupnewfster 99977f8814 Properly set the metallurgic infuser to empty, fixes #5439 2019-04-27 13:10:40 -04:00
pupnewfster ba89f446f9 Actually obey the update cache param, and use the more advanced helper method in Container as well 2019-04-26 14:39:40 -04:00
Thiakil f6d3d742e8 Check for null recipe in factory input slot. Fixes #5434 2019-04-26 19:34:02 +08:00
Thiakil 10a7be5f12 IDE assisted Nullable annotations for RecipeHandler 2019-04-26 19:33:26 +08:00
pupnewfster c1832d812e Fix Advanced purifying factory not having the lights be on. Closes #5223 2019-04-23 19:54:27 -04:00
pupnewfster 74e168e3a3 Mark BinRecipe as dynamic. Removes Caliper Air warning closes #5174 2019-04-23 16:26:28 -04:00
ToMe25 fe8233c894 Fix Crash when adding a dot or a E to the Laser Amplifier Delay. (#5430) 2019-04-23 13:13:46 -04:00
Richard Freimer 485ee89591 Fix a few missing fluid color renders for various guis (#5424)
* Fix a few missing fluid color renders for various guis. Fixes #5423

* Deduplicate the gauge drawing code for custom sized embedded gauges

* Fix Industrial Turbine gui rendering using wrong scaled fluid level

* Use GLStateManager for coloring fluid
2019-04-23 13:05:49 -04:00
Richard Freimer 03cc33f501 As we disable capabilities when a side config has them disabled we need to notify the neighbor of an update when a side's config changes. (#5426) 2019-04-22 14:20:40 -04:00
pupnewfster 14bd97e435 Give the CrT mekRecipes command a proper description 2019-04-22 13:42:29 -04:00
Richard Freimer 4a74b95998 Update to 9.7.2 2019-04-20 10:54:47 -04:00
Richard Freimer 3316832070 bump version 2019-04-20 10:52:21 -04:00
Richard Freimer 77d774e55f Particle fixes (#5411)
* Make transmitters return an actual particle instead of the default WHITE
Make fluid tank particle/break particle be the glass wall
Have hit particle for fluid tank and transmitters use the correct tier instead of being basic. Running and Falling particle still displays as the basic tier

* Get actual state for transmitters (gets the proper tier data so that we don't have to manually replace it)

* Fix dif of just imports

* Fix dif of just imports

* query the blockstate directly for the MachineType

* remove incorrect copy-pasted use of FML logger

* remove unnecessary list wrapping

* tidy copied particle code a little and un-inline constants

* use built in singleton rather than immulatble list
2019-04-20 10:45:13 -04:00
Xander 0dba7cb584 use getters & setters for InfuseStorage (#5416)
* use getters & setters for InfuseStorage to prevent type/amount discrepancies

* Fix a few checks when reading from network/NBT

* Fix some spacing I screwed up by accident

* fix metallurgic infuser gui texture for dark gauge
2019-04-20 13:38:41 +08:00
Xander bbcea85fc4 Respect NONE connection mode for Pipe Connections (#5387)
* prevent Out of Bounds exception in factory ItemMeshDefinition

* prevent Out of Bounds error in item stack display name

* Respect NONE connection between pipes. Fixes #4781

* prevent fluid/gas pipes from connecting if their contents arent the same (part 1)

* prevent some case of incorrect network merges that would convert/void a fluid/gas

* Add a way to check if a network is compatible with an buffer
Used for checking the orphan's buffer against the external network

* rename some generic type variables for readability

* introduce BUFFER generic type variable

* Fix missing null check causing new pipes not being able to be added to a network

* More checks for when there is an invalid factory

* bump api version & use a constant for all

* add default method to not break binary compat

* Refresh if a connection exists if a transmitter failed to combine two networks
Fallback to the network's buffer as if we have not saved any data yet the TE's buffer may still be null

* Add a way to get the pipes buffer falling back to the network, rather than doing it from the same method. This ensures that there is no accidental leakage where the count of the buffer matters

* Return a null buffer for pressurized tube buffer if the stack is empty

* Allow merging of networks when they are able to connect again
Visuals still need a minor update to sync the type it should be rendering

* Update network visuals when networks merge

* allow unconnected sides to have their mode set - except logistical transporters which already used that function, they only can un-NONE their unconnected sides
2019-04-20 13:38:14 +08:00
Thiakil e187bc1bb8 Robit teleportation fix. Closes #5415 2019-04-19 22:44:23 +08:00
Thiakil 260b545404 Load Mekanism Tools config before creating the materials so the config actually takes effect. Fixes #5412 2019-04-19 21:58:46 +08:00
pupnewfster a5d9a5a2c1 Fix redstone bug described in #5407 turns out it did have to call markDirtyTransmitters and notifyTileChange was not enough 2019-04-17 12:01:23 -04:00
Richard Freimer 04372a6426 Various fixes to data not loading properly (#5407)
* Cleanup redstone handling of TileEntitySidedPipe
Properly mark the transmitters as dirty if the redstone mode changed during refresh

* Fix not updating tank capacity when loading TEFluidTank from NBT

* Make transmitters fix invalid connections on load

* Address comments and call refreshConnections() directly.
2019-04-17 11:24:44 -04:00
Thiakil 9b70069eaf bump version 2019-04-15 22:12:17 +08:00
Richard Freimer f3fdf00064 Factory recipe check (#5399)
* Fixes null pointer on no recipe found #5392
Compare the recipe against the cache

* Add a few missing secondary input checks

* Don't set the cached recipe when only checking if an item can be inserted
2019-04-15 10:10:16 -04:00
Richard Freimer bc8c4f6686 Implement #5397 add a way to get CrT gas from string (#5400)
* Implement #5397 add a way to get CrT gas from string. Closes #5397
2019-04-15 08:46:30 +08:00
pupnewfster 43040909fa Fix incorrect default value from the port of config system 2019-04-13 16:25:35 -04:00
Thiakil c195cd6bbb null pointer fix for #5388 2019-04-13 11:54:40 +08:00
Dave Smith 8bc38d47a7 Avoid scheduling a sound to be played if it's fully muffled. (#5386)
* Avoid scheduling a sound to be played if it's fully muffled.

* Remove debug message
2019-04-12 12:50:54 -04:00
Richard Freimer da71637053 Port ToMe25's PR for sawing factories (#5383)
* Port remainder of #5327 implementing #5236 sawing factories

* Add missing blockstate files for sawing factories

* Inline helper method

* Revert a bit of minor formatting changes to make dif easier to read

* remove redundant mcmeta for sawing front textures

* de-dupe sawmill factory textures (left+right are the same)
2019-04-12 10:22:16 -04:00
Thiakil 0eb455b882 missed removing makefile 2019-04-12 21:12:23 +08:00
pupnewfster a1b32906b2 Slightly change the wording of the MultiblockFormParticles 2019-04-12 00:46:01 -04:00
Dave Smith f828afb786 Add support for left/right alignment of HUD; improve contrast by using a light color (#5385) 2019-04-12 00:20:34 -04:00
Xander 8a468d0c78 Gradle merge (#5382)
Gradle changes to restore CI build/release ability
2019-04-12 10:53:06 +08:00
pupnewfster fcef0e2ed4 Fix logistical transporters attempting to connect to chargepads 2019-04-11 11:21:00 -04:00
pupnewfster 8a0382877a Port first part of #5327 implementing #4688 disable free runners while sneaking
Credits to @ToMe25
2019-04-11 11:15:15 -04:00
temp1011 7ae0a4d5ca port tesr pull (#5380)
Logistical Sorter & Chargepad TESR to model improvements
2019-04-11 20:27:46 +08:00
pupnewfster d6a0d989e0 Fix JEI error from a circular enum dependency 2019-04-10 21:26:18 -04:00
temp1011 379d4b5603 prevent z fighting when bio gen has low fuel levels 2019-04-11 07:19:24 +08:00
Richard Freimer 9d98ef575d Port config rewrite (#5378)
Port Config system, Remove some unused code, Refactored various Tier enums out into their own package
2019-04-11 07:18:59 +08:00
Richard Freimer a776879eed Readd voice server (#5374)
* Add back the voice server defaulted to disabled

* Port 098472a make voice output properly sleepy

* Cleanup some of the voice server code

* Keep track of UUID in VoiceConnection instead of username

* Collapse a few missed error logging into stack trace printing

* Add tooltip to walkie talkie when voice server is disabled

* Fix single player crash if voice server is enabled after launch before world start
2019-04-10 15:12:12 -04:00
Richard Freimer a1e0688af8 Make many more Mekanism fluid renderers Stack aware for NBT purposes (#5360)
* Port 72251446f make many more Mekanism fluid renderers Stack aware for NBT purposes

* Make it a bit easier to see osmium in the compressor

* fix a missed stack color get

* move osmium gas colour back to a more vibrant blue for contrast reasons
2019-04-10 10:12:45 -04:00
Richard Freimer 88eae4f314 Port a couple missed commits (#5376)
* Port d303295da Move all version number references to gradle based

* Port ebb0c467717 dont set main multiblock position to air if its not loaded or not the right tile. Log if its not null but not what we expect

* Fix compile error
2019-04-09 22:39:06 -04:00
pupnewfster 2074a6abea Port 6c6c21a96 fix once-off sound event playing using volume option for pitch 2019-04-10 10:09:16 +08:00