File tree Expand file tree Collapse file tree
station-flattening-v0/src/main
java/net/modificationstation/stationapi/mixin/flattening Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ package net .modificationstation .stationapi .mixin .flattening ;
2+
3+ import com .llamalad7 .mixinextras .injector .ModifyExpressionValue ;
4+ import net .minecraft .block .Block ;
5+ import net .minecraft .item .MapItem ;
6+ import org .spongepowered .asm .mixin .Mixin ;
7+ import org .spongepowered .asm .mixin .injection .At ;
8+
9+ @ Mixin (MapItem .class )
10+ class MapItemMixin {
11+ @ ModifyExpressionValue (
12+ method = "update" ,
13+ at = @ At (
14+ value = "CONSTANT" ,
15+ args = "intValue=256"
16+ )
17+ )
18+ private int stationapi_adjustArray (int constant ) {
19+ return Block .BLOCKS .length ;
20+ }
21+ }
Original file line number Diff line number Diff line change 2121 " FireBlockMixin" ,
2222 " ItemMixin" ,
2323 " ItemStackMixin" ,
24+ " MapItemMixin" ,
2425 " MobSpawnerLogicMixin" ,
2526 " NetherCaveGenMixin" ,
2627 " NetherChunkGeneratorMixin" ,
You can’t perform that action at this time.
0 commit comments