Fix vanilla bug in writing structure templates with multiple palettes.
This commit is contained in:
parent
049fae5c65
commit
8c44d6d4cb
1 changed files with 9 additions and 0 deletions
|
@ -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.
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue