From 8c44d6d4cba509c47c7c248abb48248bcf277a37 Mon Sep 17 00:00:00 2001 From: LexManos Date: Sun, 12 May 2019 23:40:54 -0700 Subject: [PATCH] Fix vanilla bug in writing structure templates with multiple palettes. --- .../world/gen/feature/template/Template.java.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/patches/minecraft/net/minecraft/world/gen/feature/template/Template.java.patch b/patches/minecraft/net/minecraft/world/gen/feature/template/Template.java.patch index 6139455768..6a65e685ea 100644 --- a/patches/minecraft/net/minecraft/world/gen/feature/template/Template.java.patch +++ b/patches/minecraft/net/minecraft/world/gen/feature/template/Template.java.patch @@ -9,3 +9,12 @@ Template.BlockInfo template$blockinfo1 = p_189960_3_ != null ? p_189960_3_.func_189943_a(p_189960_1_, blockpos, template$blockinfo) : template$blockinfo; if (template$blockinfo1 != null) { Block block1 = template$blockinfo1.field_186243_b.func_177230_c(); +@@ -477,7 +479,7 @@ + + for(int l = 1; l < this.field_204769_a.size(); ++l) { + Template.BasicPalette template$basicpalette1 = list.get(l); +- template$basicpalette1.func_189956_a((this.field_204769_a.get(j).get(j)).field_186243_b, k); ++ template$basicpalette1.func_189956_a((this.field_204769_a.get(l).get(j)).field_186243_b, k); //Forge: j -> l, Fixes vanilla typo causing AIOOB writing template with multiple pellets. + } + } +