Commit Graph
5313 Commits
Author SHA1 Message Date
pupnewfster efbcdca18f Fix unused enableFog GL call. Fixes #5579 compatibility with BetterFPS' Fast fog mode 2019-07-27 11:43:21 -04:00
Richard Freimer d9b58b592f Code cleanup (#5582)
* IntelliJ code analysis Verbose or redundant code constructs

* Move some more I18n calls to using LangUtils to have less deprecation warnings

* Minor cleanup

* Make some inner classes static that do not depend on information about the containing class

* Fix mismatched lang key entries

* Address review comments
2019-07-27 11:39:58 -04:00
Richard Freimer 403cdaaeba Reconnect pipes across chunks when the chunk loads. Fixes #5583 (#5584) 2019-07-27 00:36:03 -04:00
Xander fbdee4e706 Merge pull request #5581 from mekanism/gradle_update
Update Gradle to 4.10.3
2019-07-25 20:28:40 +08:00
pupnewfster cbd82f9fee Fix warnings for build.gradle 2019-07-24 17:49:46 -04:00
pupnewfster cb72dc7614 Update dependencies 2019-07-24 17:25:36 -04:00
pupnewfster fdaaabb321 Update gradle to 4.8.1 2019-07-24 16:15:43 -04:00
pupnewfster be8635ba17 Bump version to 9.8.0 2019-07-22 13:50:05 -04:00
Richard Freimer e62c420409 Remove unused Access Transformers and minor code cleanup (#5575)
* Remove unused Access Transformers

* Run formatter and fix a few spacing errors

* Add missing Override annotations

* Remove interface declarations that are duplicates of the ones in IIngredient
2019-07-22 13:44:20 -04:00
ToMe25 a06f2f07f4 Implement #5253(Extended vein Mining, and make it possible to disable various Atomic Disassembler Modes (#5544)
* Implement Extended vein mine key and…

…Coal Gasification.

* fix one wrong lang key

was a copy past proble...

* Undo Coal Gasification in the Main Class

* Undo Coal Gasification in the OreDictHandler

* Remove a unused Constructor and add Vein Mining Config Options

* Add a Config Option to enable Extended Vein Mining

Sorry wasn't seeing that part of your comment.

* Fix the only thing i found that looks like a merge problem.

* Remove the not needed Creative mode test

* Fix a couple typos in the config options

* Make extended vein mining be its own mode instead of a key bind and allow for disabling various modes via the config

* Fix minor spacing dif
2019-07-22 12:45:44 -04:00
Richard Freimer 50b53aee35 Improve implementation of opening various Guis (#5566)
* Pass selected hotbar slot when opening personal chest. Should fix #5557

* Remove telling the server to open a personal chest. Only the server should tell the client to open it

* Don't bother even registering the client to server packet for opening personal chest

* Use openGui for block variant of personal chest

* Make it so openGui can be used for Items as well as blocks

* Use new item openGui system for portable teleporter and seismic reader

* Add wrapper for opening Gui's of by Entity

* Only clear sounds on client

* Minor clean
2019-07-22 09:16:39 -04:00
Richard Freimer 9e26feadc6 Atomic Disassembler config (#5573)
* Initial work making ItemAtomicDisassembler more readable

* Continue cleaning atomic disassembler code

* Add config values for the Atomic Disassembler. Better behaviour now when it comes to attacking at low power

* Inline method

* lower camel case the config fields

* simplify mode incrementing

* add max storage config for AD

* Fix scaling past max energy
2019-07-20 10:45:07 -04:00
Richard Freimer c5fbabef43 Fix a few issues with sound (#5561)
* Fix PlayerSounds sometimes having a null player #5560, also fix flame thrower sounds not actually playing

* Add todo comment and remove extra null check

* Cleanup a couple checks in TickHandler

* Cleanup some more tick handler methods

* Only store EntityPlayer as a WeakReference for sound, and sync flamethrower users

* Fix flamethrower idle sound not playing when first holding a flamethrower client side

* Don't lookup the EntityPlayer object if not needed

* make fade up actually fade
2019-07-20 10:31:26 -04:00
pupnewfster e33522051e Miscellaneous cleanup of energy wrappers. Also fix BuildCraft's modid 2019-07-16 18:23:43 -04:00
pupnewfster 710e7ce7de Fix setting teleporter to existing frequency not actually saving the change to the block 2019-07-16 09:23:48 -04:00
pupnewfster 63679fe673 Replace remaining uses of sendToAllAround with various versions of sendToAllTracking 2019-07-16 09:17:08 -04:00
ToMe25 83a157e9ae Implement Wood Gasification (#5556)
* Implement Wood Gasification

Implement the Wood counterpart for Coal Gasification

* redo somethingi might have undone

* Add TODO for 1.14 to evaluate adding and using charcoal dust
2019-07-16 09:05:05 -04:00
Xander 3e8d73fe6d Merge pull request #5494 from mekanism/gl_statemanager_rebased
Rendering and GUI code cleanup
2019-07-16 20:48:35 +08:00
Thiakil 182b75dbe2 use constants and switch for button ids on GuiDigitalMiner 2019-07-16 19:40:21 +08:00
pupnewfster db8dfa749a Start making GuiSeismicReader more closely mirror GuiMekanism 2019-07-14 13:59:58 -04:00
pupnewfster e80213b968 Add back glow to corners of Energy Cubes 2019-07-14 12:36:53 -04:00
pupnewfster 165a908b66 Handle resetting color changes from drawing background in the GUIs themselves 2019-07-14 12:22:48 -04:00
pupnewfster 35390c356a Replace drawHoveringText with displayTooltip as to ensure we are handling the state changes 2019-07-14 11:59:12 -04:00
pupnewfster c3699fc450 Ensure element color change does not leak in the individual elements themselves 2019-07-14 11:42:16 -04:00
pupnewfster 87025699f8 Deduplicate a bit of code between GuiFluidGauge and GuiGasGauge 2019-07-14 11:14:11 -04:00
pupnewfster fbdc201d40 Fix unwanted lighting changes made by drawHoveringText 2019-07-14 01:09:00 -04:00
pupnewfster 8e90b39d52 Switch side configs to having fully qualified buttons 2019-07-14 00:42:52 -04:00
pupnewfster 1c46407ef5 Use actual buttons for GuiDigitalMinerConfig, and commit missed removal of GuiButtonImageMek from renaming in last commit 2019-07-13 23:41:34 -04:00
pupnewfster e409147be0 Don't use old button helper method for Solar or Wind Generator as they are not actually buttons 2019-07-13 23:24:23 -04:00
pupnewfster 25df9ede2d Rename GuiButtonImageMek to GuiButtonDisableableImage 2019-07-13 23:22:09 -04:00
pupnewfster bded03f584 Fix color button in filters 2019-07-13 23:18:05 -04:00
pupnewfster c8f6d0bf9c Work on cleaning up buttons in filters 2019-07-13 22:30:31 -04:00
pupnewfster ea61b7088b Cleanup Robit implementation of buttons, and make calls adding to buttonList easier to read 2019-07-13 20:05:04 -04:00
pupnewfster 5fdb2b2bd5 Remove old coloring method 2019-07-13 18:39:34 -04:00
pupnewfster eaddff6fb6 More GuiButtonImageMek and also create GuiColorButton 2019-07-13 18:38:28 -04:00
pupnewfster e38ce21e77 Switch a few more GUIs to using GuiButtonImageMek 2019-07-13 17:50:43 -04:00
pupnewfster dddfeef2f2 Fix text color leaking from scroll list into scroll bar 2019-07-13 17:26:11 -04:00
pupnewfster 9c2ccf384a Properly show buttons as disabled if the ownerUUID failed to sync 2019-07-13 16:53:50 -04:00
pupnewfster d4f3817189 Use GuiButtonImageMek for Teleporter and SecurityDesk. Also make GuiSecurityDesk compare by UUID 2019-07-13 16:48:26 -04:00
pupnewfster 48b68f37c1 Cleanup implementation of buttons in generators module, and do some button cleanup on GuiLogisticalSorter 2019-07-13 15:46:19 -04:00
pupnewfster 981de488bf Convert GuiFormulaicAssemblicator to using GuiButtonImageMek 2019-07-13 14:35:14 -04:00
pupnewfster 8dbd4f431f Convert GuiDigitalMiner to using GuiButtonImage 2019-07-13 13:53:13 -04:00
pupnewfster 48aaf51640 Improve implementation of deduplicating TransporterStacks to render 2019-07-13 12:48:23 -04:00
pupnewfster 643bb4a72d Remove some unused GL code from MekanismItemStackRenderer 2019-07-13 11:58:36 -04:00
pupnewfster 728504efc0 Player click sound when using enter to change setting instead of just on button press 2019-07-13 11:43:50 -04:00
pupnewfster 69e6773723 Merge GLSMHelper stuff back into MekanismRenderer 2019-07-13 11:41:46 -04:00
pupnewfster 7d0968521d Move chooseByMode into GasMode enum 2019-07-13 11:24:47 -04:00
pupnewfster 0bc0be3019 Log the error if rendering an item fails 2019-07-13 11:12:47 -04:00
pupnewfster 47b19ee6fa Cleaned up some duplicated GL code especially due to loops 2019-07-13 11:09:15 -04:00
pupnewfster 5eeba1ae5e Remove some null checks that are either not needed or should have a crash happen 2019-07-13 10:25:01 -04:00