diff --git a/assets/plugins/plugin-9patch-0.0.8.jar b/assets/plugins/plugin-9patch-0.0.8.jar index b24a39f1..4e9d41de 100644 Binary files a/assets/plugins/plugin-9patch-0.0.8.jar and b/assets/plugins/plugin-9patch-0.0.8.jar differ diff --git a/plugin-9patch/src/main/java/games/rednblack/editor/plugin/ninepatch/ImageUtils.java b/plugin-9patch/src/main/java/games/rednblack/editor/plugin/ninepatch/ImageUtils.java index a04aacb7..b0f58222 100644 --- a/plugin-9patch/src/main/java/games/rednblack/editor/plugin/ninepatch/ImageUtils.java +++ b/plugin-9patch/src/main/java/games/rednblack/editor/plugin/ninepatch/ImageUtils.java @@ -159,7 +159,7 @@ public class ImageUtils { } catch (IOException e) { } - int[] pad = {0, 0, 0, 0}; + int[] pad = splits.clone(); region.names = new String[] {"split", "pad"}; region.values = new int[][] {splits, pad}; return extractNinePatch(img, region);