Commit Graph
2240 Commits
Author SHA1 Message Date
Aidan 6b23438c41 Merge pull request #4559 from thommy101/feature-4558
[1.11] Add StorageDrawer compat.
2017-07-26 09:41:16 -07:00
Tom Elfring 341e11da70 Fix config caching of pump, miner and plenisher.
Fixes 4560.
2017-07-26 10:17:00 +02:00
Aidan 2a535733c1 Merge pull request #4562 from christofferson/issue-4560
Fix issue with side configuration not respecting block orientation
2017-07-25 10:23:59 -07:00
Chris Anderson 90cf4cea08 Add config caching overrides to TileEntityFactory 2017-07-25 11:06:48 -06:00
Chris Anderson 39d4985113 Fixes #4437
Add checks to TransporterPathfinder to make sure the current node is able to emit to the side(s) we're about to check.
2017-07-25 00:51:30 -06:00
Chris Anderson ba83e8d357 Fix issue with entities not sending energy on sides correctly 2017-07-24 20:28:07 -06:00
Chris Anderson 62eeb4d548 Merge branch '1.11' of github.com:aidancbrady/Mekanism into issue-4560
# Conflicts:
#	src/main/java/mekanism/common/tile/component/TileComponentConfig.java
2017-07-24 19:11:02 -06:00
Chris Anderson e3de87ff45 Fixes #4560 2017-07-24 19:05:20 -06:00
Tom Elfring 10550f656a Add StorageDrawer compat.
Adds feature #4558
NOTE: This is not needed in 1.12
2017-07-24 20:04:54 +02:00
Tom Elfring c86e1b7c60 Merge remote-tracking branch 'upstream/1.11' into feature-CTM 2017-07-24 11:26:19 +02:00
aidancbrady 77e46985ac Fix crash 2017-07-23 20:58:01 -07:00
Aidan 9b93a56c95 Merge pull request #4498 from christofferson/issue-4492
Fix MCMP ClassCastException and usability
2017-07-23 18:09:51 -07:00
aidancbrady 7db697213c Minor cleanup 2017-07-23 18:02:49 -07:00
Chris Anderson 7ce1ac4d42 Update addMultipartHeader to stop counting ITileNetwork implementations after 2 2017-07-23 19:02:49 -06:00
Richard Carter bc3274825a Some performance-oriented refactoring of TileComponentConfig
Add new type "SideConfig" which is observable, this could come in handy
later.
Add hasSideForData method in componentConfig, which is much more
efficient than calling getSidesForData().contains.
Refactor duplicate calls to getConfig into single instances. getConfig
is a nontrivial method.
2017-07-23 20:14:34 -04:00
Richard Carter dc6312e1d3 TileEntityAdvancedBoundingBlock calls getInv twice as much as needed
getInv is a non-trivial getter and doesn't need to be called twice in
all of these methods. Refactor the methods to only call it once.
2017-07-23 20:14:34 -04:00
Richard Carter a9b023a6b2 acceptEnergy/pullEnergy: return 0 if machine is full or empty
Prior to this change, the machines always updated their energy, which
involved a side check and a chunk markDirty; even if the machine is
receiving or giving 0 energy.
Right upfront, check if the machine needs no energy or has none to give,
and if so return 0.
I observed greatly increased server tick performance after this change.
2017-07-23 20:14:34 -04:00
Richard Carter 0c0411979d Add sideIsOutput and sideIsConsumer methods
getOutputtingSides and getConsumingSides both have to construct an
EnumSet, but most usages only immediately call contains() on the EnumSet
and then discard it. Improve performance by adding a method that can
test a side and return a boolean, avoiding the EnumSet creation.
2017-07-23 20:14:34 -04:00
Richard Carter 491a03cf63 TileEntityFluidTank: call getTileEntity once, not twice
Another tiny performance improvement. Showed up when profiling.
2017-07-23 20:14:34 -04:00
Chris Anderson 8d55f5996b Refactoring multipart packet routing
* Added addMultipartHeader to MultipartTileNetworkJoiner to determine whether a header is needed and add it if necessary
 * Moved individual header addition in transmitter implementations to TileEntitySidedPipe
2017-07-23 15:56:22 -06:00
Tom Elfring e9957ad895 Make redstoneflux an optional dependency 2017-07-23 13:59:18 +02:00
Tom Elfring df68b1e36a Merge remote-tracking branch 'upstream/1.11' into 1.12_firstpass 2017-07-23 13:56:41 +02:00
Xander 3815945d1e Fix handling of consumable item fluid containers.
Fixes #4539.
Also added some null checks.
2017-07-23 12:50:43 +08:00
aidancbrady 46367a445e Merge branch 'master' into 1.11
* master:
  Replace 'toRemove' pattern with Iterator.remove() calls
2017-07-22 20:55:15 -07:00
Aidan f590af2e04 Merge branch 'master' into master 2017-07-22 20:54:20 -07:00
Aidan 8d3f9a2297 Merge branch '1.11' into feature-3808 2017-07-22 20:53:20 -07:00
Chris Anderson 4691f83274 Add JavaDoc to MultipartTileNetworkJoiner 2017-07-22 21:47:10 -06:00
Chris Anderson 5051186918 Merge branch '1.11' of github.com:aidancbrady/Mekanism into issue-4492
# Conflicts:
#	src/main/java/mekanism/common/block/BlockGlowPanel.java
#	src/main/java/mekanism/common/block/BlockTransmitter.java
2017-07-22 21:35:13 -06:00
Aidan dbb86e344d Merge pull request #4523 from thommy101/issue-4513
[1.11] Update BuildCraft API to maven dependency
2017-07-22 20:32:49 -07:00
aidancbrady f3b4909be9 Revert "Fix handling of consumabe item fluid containers."
This reverts commit 9106ac94a7.
2017-07-22 20:26:58 -07:00
aidancbrady 8145088c45 Cleanup 2017-07-22 20:16:48 -07:00
Aidan 4a7b457bfc Merge branch '1.11' into issue-4484 2017-07-22 20:07:08 -07:00
Aidan 7b1e965509 Merge pull request #4544 from thommy101/issue-3613
[1.11] Add multiblock structures to cardboard blacklist.
2017-07-22 20:05:31 -07:00
Aidan cb675a9e5d Merge pull request #4543 from thommy101/issue-3802
[1.11] Make empty containers stackable.
2017-07-22 20:03:39 -07:00
Aidan d6892677c1 Merge pull request #4547 from thommy101/feature-3807
[1.11] Add bin drops directly to player inventory.
2017-07-22 20:01:29 -07:00
Aidan 243505c127 Merge pull request #4551 from thommy101/issue-4539
[1.11] Fix handling of consumable item fluid containers.
2017-07-22 20:00:06 -07:00
Aidan 34847c8c15 Merge pull request #4549 from thommy101/issue-3534
[1.11] Fix TE access from ChunkCache.
2017-07-22 19:58:03 -07:00
Tom Elfring 9106ac94a7 Fix handling of consumabe item fluid containers.
Fixes #4539.
Also added some null checks and fixed some compiler warnings
2017-07-22 14:40:02 +02:00
Chris Anderson a34bceac00 Enhancements and improvements to MCMP functionality
- Refactored retrieval of tile entities to take advantage of MCMP world wrapping
- Added fixes for glow panels
- Added single byte ordinal headers to handlePacketData in possible multipart tiles so that packets can be correctly routed
- Added MultipartTileNetworkJoiner to route ITileNetwork packets when multiple network tiles are in the same multipart (i.e. glow panel attached to a transmitter)
2017-07-22 05:13:08 -06:00
Tom Elfring 1aaf49cdf9 Merge remote-tracking branch 'upstream/1.11' into 1.12_firstpass 2017-07-21 18:46:26 +02:00
Tom Elfring cfd301a349 Fix dynamic texture walkytalky and crafting formula 2017-07-21 18:31:50 +02:00
Xander 7bf8fedb37 add a log message the first time a username lookup fails 2017-07-21 21:24:12 +08:00
Xander a39d624545 minor fix for log message; return the size of the list we're checking against 2017-07-21 20:46:59 +08:00
Xander a5e816dddc Add util method to get Username from UUID, without nulls 2017-07-21 20:35:41 +08:00
Tom Elfring 4614c67750 Fix typo 2017-07-21 12:47:38 +02:00
Tom Elfring 7c1e8b9f81 Change TE access from ChunkCache to Util method 2017-07-21 12:43:39 +02:00
Tom Elfring 65084f567b Fix TE access from ChunkCache.
Fixes #3534
2017-07-21 11:21:41 +02:00
Tom Elfring 122d3d86e0 Move CTM from internal code to CTM-mod.
Currently WIP as not everything is working as before.
2017-07-20 14:11:48 +02:00
Tom Elfring 0a1da00913 Add bin drops directly to player inventory.
If there's no space, drop them in front of the bin.
Adds feature #3807
2017-07-19 19:00:33 +02:00
Tom Elfring 6f78c19cb2 Add disable toggle to freerunners.
Adds feature #3808.
2017-07-19 15:15:35 +02:00