Fix issue with writing to non-existent directory due to extra stamps

code being left turned on.
r3cp3ct-Japanese-sticker-triggers
sigonasr2 6 years ago
parent b81a87b449
commit bd1f339c87
  1. BIN
      sigIRCv2.jar
  2. 4
      src/sig/modules/BandoriModule.java

Binary file not shown.

@ -147,7 +147,7 @@ public class BandoriModule extends Module{
stamp_map.put("tsugumi_amazing",Arrays.asList("amazing","wow","sugoi","wooo","cool!","tsugurific")); stamp_map.put("tsugumi_amazing",Arrays.asList("amazing","wow","sugoi","wooo","cool!","tsugurific"));
stamp_map.put("eve_thefruits",Arrays.asList("fruits","labor","hardwork","effort")); stamp_map.put("eve_thefruits",Arrays.asList("fruits","labor","hardwork","effort"));
for (String s : image_map.keySet()) { /*for (String s : image_map.keySet()) {
ImageScheme scheme = image_map.get(s); ImageScheme scheme = image_map.get(s);
try { try {
BufferedImage img = crop(scheme.base,scheme.stamp_index%6*270+4, scheme.stamp_index/6*223+3, 258, 214); BufferedImage img = crop(scheme.base,scheme.stamp_index%6*270+4, scheme.stamp_index/6*223+3, 258, 214);
@ -155,7 +155,7 @@ public class BandoriModule extends Module{
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }
} }*/
} }
public BufferedImage crop(BufferedImage img, int x, int y, int targetWidth, int targetHeight) throws IOException { public BufferedImage crop(BufferedImage img, int x, int y, int targetWidth, int targetHeight) throws IOException {

Loading…
Cancel
Save