Commit Graph
30 Commits
Author SHA1 Message Date
Worive eee8fa38c6 Makes controller animations per storage network instead of globally (#1595) 2026-09-23 06:03:09 +00:00
JakubandMartin Robertz 5528376ee8 Instantly recompute channels when changing parts of a network (#836)
Co-authored-by: Martin Robertz <[email protected]>
2025-08-29 06:58:48 +00:00
reobf 3b967fa763 Fix MENetworkChannelChanged not woking (#712) 2025-04-02 09:41:28 -05:00
lordIcocainandMaya 47b72fb6d6 Fix that self powered controller didnt count as controller in grid. (#691)
Co-authored-by: Maya <[email protected]>
2025-03-15 15:30:53 +00:00
Simon Zünd 7326db668a Remove BackbonePathSegment and PathGridCache.backbone (#644) 2024-12-29 19:15:14 -06:00
Firenoo 59fea5ca02 me/cache: Add indication of booting/nonbooting to event
The booting/nonbooting event is posted whenever the ME system starts its
"boot" phase and when the "boot" phase is finished. This commit
distinguishes the two phases.

Some subscribers might need this information to determine whether to push
an update or not.

An example is written in this commit - part interface terminal is only
curious about when the terminal boots back up, not when the network enters
the booting state.
2023-10-27 13:52:45 +02:00
miozune 107832d4fd Fix wildcard import (#392) 2023-09-24 10:09:03 +02:00
firenoo 33c5cfb608 Revert "p2p rebooting the network (#329)" (#354)
This reverts commit edf5dd44fb.

Was causing pathfinding problems.
2023-07-03 11:06:50 -07:00
edf5dd44fb p2p rebooting the network (#329)
* Not sure why this flag was originally inverted, perhaps to prevent cycles in the old pathfinding algorithm

* update storage grid after recalculating channels (previously any grid node was considered active while booting)

* compress path recalculation a bit

* fix p2p tunnels updating

* Decrease monitor container flickering while rebuilding the grid

* Added node API method for those cases when the caller doesn't care if the node grid is booting

* spotlessApply (#338)

Co-authored-by: GitHub GTNH Actions <>

* Remove wildcard imports

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Firenoo <[email protected]>
2023-06-11 18:16:40 +02:00
Raven Szewczyk 19676072b8 Enable generics injection & Jabel & code cleanup (#307)
* Enable Jabel and generic injection

* Use RoundingMode enum values

* Use enhanced for loops

* Use diamond operator where appropriate

* Deprecate ChainedIterator

* spotless

* Collapse identical catch blocks

* Use try with resources

* Use List.sort where possible

* Anonymous type->lambda

* Loop -> removeIf

* Simplifiable map operations

* Use enhanced instanceof

* Use enhanced switch

* Use bulk operations

* Use zero-sized arrays in toArray

* Add early exits

* Remove redundant addAll

* Fix missing reflection generic types

* More missed language migration aids

* Redundant type arguments

* Redundant type casts

* Fix compilation errors

* Use Arrays.fill

* Fix some missing generic types
2023-05-02 07:55:33 +02:00
Raven Szewczyk 385e163974 [ci skip] spotlessApply with the new settings 2023-01-29 09:18:04 +00:00
xyqyear 24e4bd608c Performance Improvements When Channel Is Disabled (#190)
* enable parts and controller even when channel is disabled

* make me controller usable for channelless networks

* apply @talchas's performance optimization for channelless config
2022-10-08 13:10:59 +02:00
Raven Szewczyk a40ee7424f Update buildscript, apply spotless (#175) 2022-09-01 13:27:40 +02:00
repo-alt 4195c6f821 Add some more optional logging to debug pathfinding at the live server (#158)
* Add some more optional logging to debug pathfinding at the live server

* Refactored stack printing
2022-08-05 18:18:10 +03:00
repo-alt cbfe0ed0b1 Added some debugging options: (#125)
- pathfinding debug option
- commands to toggle debug logging
- QNB and pathfinding debug logging
2022-03-14 07:22:35 +01:00
repo-alt b876bbab78 Fixed grid pathfinding actually allowing backbone cables to carry more than 32 channels (#100)
* Fixed grid pathfinding actually allowing backbone cables to carry more than 32 channels
Fixed backbone cables connection capabilities, only allowing them to connect to dense cables

* Renamed the "Ultra Dense Cable" to "Backbone Cable", to clarify the usage

* ME p2p is allowed to transfer 128 channels

* Allow non dense cables to connect to quantum bridge

* Another try at fixing pathfinding with backbone cables
2022-02-02 11:18:41 +01:00
xsun 53d3eafdbf clean up completely.(Although I think Intellij IDEA did a lot of useless thing) 2017-04-12 22:10:28 +08:00
yueh 500fc47490 Reduces visibility of internal fields/methods
Reduces the visibility of all fields to private and create setters/getters
when necessary. Exceptions are fields with GuiSync as these need to be
public.

Reduces the visibility of internal methods to private/protected/default when possible.
2015-10-30 18:52:20 +01:00
thatsIch 410d2f1e0d final variables and parameters
seeing some methods it does actually help to enforce the parameters
2015-09-26 21:08:18 +02:00
thatsIch 0387d30d1c Reduce scope of variables 2015-09-26 20:07:51 +02:00
thatsIch 64ed05a1b4 Puts everywhere brackets 2015-04-29 18:38:24 +02:00
thatsIch d34c988c88 Basic reformat, hit once, hope never again 2015-04-03 15:07:13 +02:00
yueh 9b7b0fc0fb Organize imports 2014-12-29 21:59:05 +01:00
yueh f471513bd0 Changed access to use this qualifier 2014-12-29 15:13:47 +01:00
thatsIch 7505f9b66a Added copyright to all java files 2014-11-14 12:03:00 +01:00
thatsIch bba04d0de9 Added missing types of collections
Fixed single loop
2014-10-04 19:00:41 +02:00
Andrew 5c5aaa21ee Merge remote-tracking branch 'upstream/rv2' into rv2
Conflicts:
	src/main/java/appeng/items/tools/powered/ToolMassCannon.java
2014-09-29 00:26:15 -07:00
thatsIch f1ffbf08a2 Resolved some unchecked Types 2014-09-28 22:20:14 +02:00
Andrew da63aca95c Deleted unnecessary casts with Eclipse 2014-09-28 11:56:16 -07:00
AlgorithmX2 386d18a059 Relocate Source to proper directory. 2014-09-23 19:26:27 -05:00