From 273a276fda5f0609a53373c3c05ebe55382789a7 Mon Sep 17 00:00:00 2001 From: simibubi <31564874+simibubi@users.noreply.github.com> Date: Wed, 23 Mar 2022 20:02:36 +0100 Subject: [PATCH] Version bump --- gradle.properties | 2 +- src/main/java/com/simibubi/create/AllBlocks.java | 1 + src/main/java/com/simibubi/create/Create.java | 2 +- .../trains/management/edgePoint/signal/SignalBoundary.java | 3 +++ .../trains/management/edgePoint/signal/SignalRenderer.java | 1 + src/main/resources/META-INF/mods.toml | 2 +- 6 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index 504689cf8..5c5f59c11 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ org.gradle.jvmargs = -Xmx3G org.gradle.daemon = false # mod version info -mod_version = 0.4.1 +mod_version = 0.5.0 minecraft_version = 1.18.2 forge_version = 40.0.19 diff --git a/src/main/java/com/simibubi/create/AllBlocks.java b/src/main/java/com/simibubi/create/AllBlocks.java index 971eb117f..27efa6e41 100644 --- a/src/main/java/com/simibubi/create/AllBlocks.java +++ b/src/main/java/com/simibubi/create/AllBlocks.java @@ -1338,6 +1338,7 @@ public class AllBlocks { public static final BlockEntry TRACK_SIGNAL = REGISTRATE.block("track_signal", SignalBlock::new) .initialProperties(SharedProperties::softMetal) .properties(p -> p.sound(SoundType.NETHERITE_BLOCK)) + .properties(BlockBehaviour.Properties::noOcclusion) .transform(pickaxeOnly()) .blockstate((c, p) -> p.getVariantBuilder(c.get()) .forAllStates(state -> ConfiguredModel.builder() diff --git a/src/main/java/com/simibubi/create/Create.java b/src/main/java/com/simibubi/create/Create.java index 78a263bc7..3cecd12fe 100644 --- a/src/main/java/com/simibubi/create/Create.java +++ b/src/main/java/com/simibubi/create/Create.java @@ -59,7 +59,7 @@ public class Create { public static final String ID = "create"; public static final String NAME = "Create"; - public static final String VERSION = "0.4.1"; + public static final String VERSION = "0.5-unstable"; public static final Logger LOGGER = LogManager.getLogger(); diff --git a/src/main/java/com/simibubi/create/content/logistics/trains/management/edgePoint/signal/SignalBoundary.java b/src/main/java/com/simibubi/create/content/logistics/trains/management/edgePoint/signal/SignalBoundary.java index d5f28b2b7..ecd15b35d 100644 --- a/src/main/java/com/simibubi/create/content/logistics/trains/management/edgePoint/signal/SignalBoundary.java +++ b/src/main/java/com/simibubi/create/content/logistics/trains/management/edgePoint/signal/SignalBoundary.java @@ -186,6 +186,9 @@ public class SignalBoundary extends TrackEdgePoint { invalid = true; break; } + if (otherSignal.blockEntities.get(sideOfOther) + .isEmpty()) + continue; SignalState otherState = otherSignal.cachedStates.get(sideOfOther); allPathsFree &= otherState == SignalState.GREEN || otherState == SignalState.INVALID; noPathsFree &= otherState == SignalState.RED; diff --git a/src/main/java/com/simibubi/create/content/logistics/trains/management/edgePoint/signal/SignalRenderer.java b/src/main/java/com/simibubi/create/content/logistics/trains/management/edgePoint/signal/SignalRenderer.java index 066dd7b08..0a3972e85 100644 --- a/src/main/java/com/simibubi/create/content/logistics/trains/management/edgePoint/signal/SignalRenderer.java +++ b/src/main/java/com/simibubi/create/content/logistics/trains/management/edgePoint/signal/SignalRenderer.java @@ -36,6 +36,7 @@ public class SignalRenderer extends SafeTileEntityRenderer { .renderInto(ms, buffer.getBuffer(RenderType.solid())); else CachedBufferer.partial(AllBlockPartials.SIGNAL_OFF, blockState) + .light(light) .renderInto(ms, buffer.getBuffer(RenderType.solid())); BlockPos pos = te.getBlockPos(); diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index 4c8b47241..e9db77a4e 100644 --- a/src/main/resources/META-INF/mods.toml +++ b/src/main/resources/META-INF/mods.toml @@ -5,7 +5,7 @@ license="MIT" [[mods]] modId="create" -version="0.4.1" +version="0.5.0" displayName="Create" #updateJSONURL="" displayURL="https://www.curseforge.com/minecraft/mc-mods/create"