aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-02-03 01:39:29 +0900
committersyeyoung <cyong06@naver.com>2021-02-03 01:39:29 +0900
commit246268a03f302bbcbe0dbf1c9c7f6042edb2bfd2 (patch)
treed85bca05f5a1bcf2679d60d87c028c968d97ef50 /src/main/java
parent6098dbcd64f45eae2c57e81803cda2888c2e841b (diff)
downloadSkyblock-Dungeons-Guide-246268a03f302bbcbe0dbf1c9c7f6042edb2bfd2.tar.gz
Skyblock-Dungeons-Guide-246268a03f302bbcbe0dbf1c9c7f6042edb2bfd2.tar.bz2
Skyblock-Dungeons-Guide-246268a03f302bbcbe0dbf1c9c7f6042edb2bfd2.zip
bomb defuse solver complete
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bombdefuse/chambers/color/ColorRightProcessor.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bombdefuse/chambers/color/ColorRightProcessor.java b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bombdefuse/chambers/color/ColorRightProcessor.java
index 490ba593..303d553d 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bombdefuse/chambers/color/ColorRightProcessor.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bombdefuse/chambers/color/ColorRightProcessor.java
@@ -47,9 +47,9 @@ public class ColorRightProcessor extends GeneralDefuseChamberProcessor {
@Override
public void tick() {
super.tick();
- c3b = match(getChamber().getEntityAt(EntityArmorStand.class,b1.add(0, -1, 0)));
+ c1b = match(getChamber().getEntityAt(EntityArmorStand.class,b1.add(0, -1, 0)));
c2b = match(getChamber().getEntityAt(EntityArmorStand.class,b2.add(0, -1, 0)));
- c1b = match(getChamber().getEntityAt(EntityArmorStand.class,b3.add(0, -1, 0)));
+ c3b = match(getChamber().getEntityAt(EntityArmorStand.class,b3.add(0, -1, 0)));
}
@Override
@@ -80,9 +80,9 @@ public class ColorRightProcessor extends GeneralDefuseChamberProcessor {
public void onDataRecieve(NBTTagCompound compound) {
if (7 == compound.getByte("a")) {
answer = compound.getInteger("b");
- b1b = (byte) (answer / 10000);
+ b3b = (byte) (answer / 10000);
b2b = (byte) ((answer % 10000) / 100);
- b3b = (byte) (answer % 100);
+ b1b = (byte) (answer % 100);
}
}
@@ -94,6 +94,9 @@ public class ColorRightProcessor extends GeneralDefuseChamberProcessor {
ItemStack item = armorStand.getInventory()[4];
NBTTagList list = item.getTagCompound().getCompoundTag("SkullOwner").getCompoundTag("Properties").getTagList("textures", 10);
String str = ((NBTTagCompound)list.get(0)).getString("Value");
+ if (!integers.containsKey(str)) {
+ System.out.println("Cant determine "+str);
+ }
return (byte) (!integers.containsKey(str) ? 0 : integers.get(str));
}