From d5c4f862e7c8bc5562e72cc1af14f7cd380922a1 Mon Sep 17 00:00:00 2001 From: Anuken Date: Wed, 13 Apr 2022 09:44:58 -0400 Subject: [PATCH] Fixed Serpulo-placeable blocks on Erekir --- core/src/mindustry/world/Build.java | 2 +- gradle.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/world/Build.java b/core/src/mindustry/world/Build.java index 4859a095fd..abcccfa3c5 100644 --- a/core/src/mindustry/world/Build.java +++ b/core/src/mindustry/world/Build.java @@ -126,7 +126,7 @@ public class Build{ /** Returns whether a tile can be placed at this location by this team. */ public static boolean validPlace(Block type, Team team, int x, int y, int rotation, boolean checkVisible){ //the wave team can build whatever they want as long as it's visible - banned blocks are not applicable - if(type == null || (checkVisible && (!type.isPlaceable() && !(state.rules.waves && team == state.rules.waveTeam && type.isVisible())))){ + if(type == null || (checkVisible && (!type.environmentBuildable() || (!type.isPlaceable() && !(state.rules.waves && team == state.rules.waveTeam && type.isVisible()))))){ return false; } diff --git a/gradle.properties b/gradle.properties index 7a2102c07f..0ff42854f7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -25,4 +25,4 @@ org.gradle.caching=true #used for slow jitpack builds; TODO see if this actually works org.gradle.internal.http.socketTimeout=100000 org.gradle.internal.http.connectionTimeout=100000 -archash=99bb8a5559 +archash=2eb7608c5d