Yoshyandgithub-actions[bot] 287e8317c9 Add reject_continue to PlaceResult and make SKIP short-circuit in ofChain (#63)
ofChain survival placement had a bug where SKIP (returned when a block
already exists) would not stop the chain, causing fallback alternatives
to replace already valid blocks , for example:
<img width="436" height="477" alt="image"
src="https://github.com/user-attachments/assets/7ff3d6fa-de98-4716-823f-3ad2abab7394"
/>

SKIP now short-circuits the chain, remaining alternatives are skipped
because the position is already valid.
To keep correct behavior for elements without autobuild (which
previously returned SKIP as a "no implementation" signal), a new
REJECT_CONTINUE value is added, which: continues silently like SKIP (no
error, not counted) in the walker and in the chain tries the next
alternative like REJECT
Default survivalPlaceBlock and IStructureElementCheckOnly now return
REJECT_CONTINUE instead of SKIP for unhandled paths.

Tested this with the example above, and fixed the issue:
<img width="435" height="498" alt="image"
src="https://github.com/user-attachments/assets/d92bce4d-b5ad-4051-af79-ffd8c819f9f7"
/>
survival placement also still works:
<img width="1234" height="916" alt="image"
src="https://github.com/user-attachments/assets/632d5556-524d-4dc5-a7f5-75c859cb6b70"
/>

this should ideally merged before
https://github.com/GTNewHorizons/GT5-Unofficial/pull/6922 , to fix this
underlying bug, but if possible not be tagged without the other PR,
which would cause all NEI previews of multis with water to not show any
water anymore

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-06-06 18:10:11 +02:00
2026-03-07 09:38:45 +01:00
2026-04-03 22:32:39 +02:00
2022-03-02 00:32:50 +08:00
2025-03-10 16:27:58 -05:00
2023-02-28 01:30:57 +08:00
2024-02-04 20:01:59 +00:00
2022-01-17 23:58:46 -08:00
2026-04-03 22:32:39 +02:00
2026-04-03 22:32:39 +02:00
2026-04-03 22:32:39 +02:00
2026-01-05 21:28:00 +01:00
2023-07-13 22:05:35 +02:00
2024-01-09 11:42:10 +08:00
2026-04-03 22:32:39 +02:00

StructureLib

A standalone version of TecTech structure api.

Originally created by TecTech authors, taken with permission. It's under MIT license anyway.

permission

Using

  1. Add this to your build.gradle
    dependencies {
      compile "com.github.GTNewHorizons:StructureLib:master-SNAPSHOT:deobf"
    }
    repositories {
        maven {
            name = "jitpack.io"
            url = "https://jitpack.io"
        }
    }
    
    Replace master-SNAPSHOT with a commit hash or a tag name (if any) of your choice to prevent unexpected upstream changes.
  2. Add required-after:structurelib; to your @Mod(dependencies = "..") tring.
  3. Add structurelib to your mcmod.info.

Contribution

The project is developed using IDEA. Please manually configure the build to not delegate to gradle for textures to show up in dev.

Current license

Due to me adding in ItemStackMap, which was derived from code from CodeChicken's LGPL mod NEI. This mod is effectively considered licensed under LGPL in its entirety since commit ebef584b8c or any squash commit containing it, e.g. 609e50428e.

Note while the LICENSE.txt is added by a much later commit, all code on previous commits are covered by this as well.

S
Description
No description provided
Readme GPL-3.0
16 MiB
0 Stars 1 Watchers 0 Forks
Languages
Java 99.8%
Shell 0.2%