More empty floor bugfixes
This commit is contained in:
@@ -20,7 +20,6 @@ void main(){
|
|||||||
float stime = u_time / 5.0;
|
float stime = u_time / 5.0;
|
||||||
|
|
||||||
vec4 sampled = texture2D(u_texture, c + vec2(sin(stime/3.0 + coords.y/0.75) * v.x, 0.0));
|
vec4 sampled = texture2D(u_texture, c + vec2(sin(stime/3.0 + coords.y/0.75) * v.x, 0.0));
|
||||||
|
|
||||||
vec3 color = sampled.rgb * vec3(0.9, 0.9, 1);
|
vec3 color = sampled.rgb * vec3(0.9, 0.9, 1);
|
||||||
|
|
||||||
float tester = mod((coords.x + coords.y*1.1 + sin(stime / 8.0 + coords.x/5.0 - coords.y/100.0)*2.0) +
|
float tester = mod((coords.x + coords.y*1.1 + sin(stime / 8.0 + coords.x/5.0 - coords.y/100.0)*2.0) +
|
||||||
|
|||||||
@@ -255,7 +255,7 @@ public class Floor extends Block{
|
|||||||
Point2 point = Geometry.d8[i];
|
Point2 point = Geometry.d8[i];
|
||||||
Tile other = tile.nearby(point);
|
Tile other = tile.nearby(point);
|
||||||
|
|
||||||
if(other != null && doEdge(tile, other, other.floor()) && other.floor().cacheLayer == realCache && other.floor().edges() != null){
|
if(other != null && doEdge(tile, other, other.floor()) && other.floor().cacheLayer == realCache && other.floor().edges() != null && other.floor() != Blocks.empty){
|
||||||
|
|
||||||
if(!blended.getAndSet(other.floor().id)){
|
if(!blended.getAndSet(other.floor().id)){
|
||||||
blenders.add(other.floor());
|
blenders.add(other.floor());
|
||||||
|
|||||||
Reference in New Issue
Block a user