Fixed Serpulo-placeable blocks on Erekir

This commit is contained in:
Anuken
2022-04-13 09:44:58 -04:00
parent 41a3dae138
commit d5c4f862e7
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}