Some logic stuff

This commit is contained in:
Anuken
2022-02-10 12:33:18 -05:00
parent 414d07a843
commit 8f676cf6c3
6 changed files with 34 additions and 5 deletions

View File

@@ -1153,7 +1153,7 @@ public class Block extends UnlockableContent implements Senseable{
@Override
public double sense(LAccess sensor){
return switch(sensor){
case color -> Color.toDoubleBits(mapColor.r, mapColor.g, mapColor.b, mapColor.a);
case color -> mapColor.toDoubleBits();
case health, maxHealth -> health;
case size -> size * tilesize;
case itemCapacity -> itemCapacity;