mirror of
https://github.com/GTNewHorizons/StructureLib.git
synced 2026-11-20 20:12:09 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e70ea765f8 | ||
|
|
56a083ce6f |
@@ -434,11 +434,8 @@ public class StructureUtility {
|
|||||||
Block block = world.getBlock(x, y, z);
|
Block block = world.getBlock(x, y, z);
|
||||||
int meta = world.getBlockMetadata(x, y, z);
|
int meta = world.getBlockMetadata(x, y, z);
|
||||||
TIER tier = tierExtractor.convert(block, meta);
|
TIER tier = tierExtractor.convert(block, meta);
|
||||||
if (!Objects.equals(tier, notSet)) {
|
if (Objects.equals(tier, tierExtractor.convert(hint.getKey(), hint.getValue())))
|
||||||
return Objects.equals(tier, tierExtractor.convert(hint.getKey(), hint.getValue()))
|
return PlaceResult.SKIP;
|
||||||
? PlaceResult.SKIP
|
|
||||||
: PlaceResult.REJECT;
|
|
||||||
}
|
|
||||||
return StructureUtility.survivalPlaceBlock(
|
return StructureUtility.survivalPlaceBlock(
|
||||||
hint.getKey(), hint.getValue(), world, x, y, z, s, actor, chatter);
|
hint.getKey(), hint.getValue(), world, x, y, z, s, actor, chatter);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user