Skip to content

Commit

Permalink
Fix FakeInteriorLighting setting
Browse files Browse the repository at this point in the history
  • Loading branch information
cam72cam committed Dec 12, 2023
1 parent 385c32e commit 901bf01
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ public StockModel(DEFINITION def) throws Exception {
return base;
}
boolean hasInteriorOverride = hasInterior;
if (!hasInteriorOverride && ConfigGraphics.FakeInteriorLighting) {
if (!hasInteriorOverride) {
// No interior found in this stock, should we use a fallback?

if (stock instanceof Locomotive || stock instanceof CarPassenger) {
if ((stock instanceof Locomotive || stock instanceof CarPassenger) && ConfigGraphics.FakeInteriorLighting) {
// Locomotives and cars should pretend to have an interior when not ridden
hasInteriorOverride = MinecraftClient.getPlayer().getRiding() != stock;
} else {
Expand Down

0 comments on commit 901bf01

Please sign in to comment.