mirror of
https://github.com/GTNewHorizons/StructureLib.git
synced 2026-10-26 14:23:56 +00:00
Read channel in getBlocksToPlace (#68)
## Summary This causes inconsistency in the API and should be addressed. The primary consumer of the API is NEI preview and the preview does show wrong block with glass tier set, not sure if this is the cause <img width="1088" height="491" alt="image" src="https://github.com/user-attachments/assets/fff146d8-6d8e-44d9-842e-1677691271d2" /> ## Checklist - [ ] I have tested this PR in DevEnv - [ ] I have tested this PR in Fullpack - [x] This PR is in compliance with the [GTNH AI Policy](https://github.com/GTNewHorizons/GTNH-Dev-Doc/blob/master/AI_POLICY.md) - [ ] This PR requires another PR in order to merge --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
4922760b46
commit
ff88cbf2d7
1 file changed
+2
-1
@@ -3013,7 +3013,8 @@ public class StructureUtility {
|
||||
@Override
|
||||
public BlocksToPlace getBlocksToPlace(T t, World world, int x, int y, int z, ItemStack trigger,
|
||||
AutoPlaceEnvironment env) {
|
||||
return backing.getBlocksToPlace(t, world, x, y, z, trigger, env);
|
||||
return backing
|
||||
.getBlocksToPlace(t, world, x, y, z, ChannelDataAccessor.withChannel(trigger, channel), env);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
|
||||
Reference in new issue
Block a user