Skip to content

Commit

Permalink
Use NeoForge face data instead of custom unlit quad hooks (#8322)
Browse files Browse the repository at this point in the history
This fixes compatibility issues with mods that need to implement model
loading themselves (e.g. ModernFix when dynamic resources is enabled).

For reference, models were updated using: `find
src/main/resources/assets/ae2/models -name \*.json | xargs sed -i
's/"unlit": true/"neoforge_data": {"block_light": 15, "sky_light":
15}/g'`
  • Loading branch information
embeddedt authored Jan 14, 2025
1 parent 681c528 commit 6d1dbc6
Show file tree
Hide file tree
Showing 38 changed files with 175 additions and 338 deletions.
76 changes: 0 additions & 76 deletions src/main/java/appeng/hooks/UnlitQuadHooks.java

This file was deleted.

This file was deleted.

55 changes: 0 additions & 55 deletions src/main/java/appeng/mixins/unlitquad/ModelManagerMixin.java

This file was deleted.

2 changes: 0 additions & 2 deletions src/main/resources/ae2.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
"StructureTemplateMixin"
],
"client": [
"unlitquad.ModelManagerMixin",
"unlitquad.BlockPartFaceDeserializerMixin",
"AbstractContainerScreenMixin",
"GuiGraphicsMixin",
"WrappedGenericStackTooltipModIdMixin",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,32 @@
"down": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": { "block_light": 15, "sky_light": 15 }
},
"east": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": { "block_light": 15, "sky_light": 15 }
},
"north": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": { "block_light": 15, "sky_light": 15 }
},
"south": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": { "block_light": 15, "sky_light": 15 }
},
"up": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": { "block_light": 15, "sky_light": 15 }
},
"west": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": { "block_light": 15, "sky_light": 15 }
}
},
"from": [0, 0, 0],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,32 @@
"down": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": { "block_light": 15, "sky_light": 15 }
},
"east": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": { "block_light": 15, "sky_light": 15 }
},
"north": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": { "block_light": 15, "sky_light": 15 }
},
"south": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": { "block_light": 15, "sky_light": 15 }
},
"up": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": { "block_light": 15, "sky_light": 15 }
},
"west": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": { "block_light": 15, "sky_light": 15 }
}
},
"from": [0, 0, 0],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,32 @@
"down": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": { "block_light": 15, "sky_light": 15 }
},
"east": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": { "block_light": 15, "sky_light": 15 }
},
"north": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": { "block_light": 15, "sky_light": 15 }
},
"south": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": { "block_light": 15, "sky_light": 15 }
},
"up": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": { "block_light": 15, "sky_light": 15 }
},
"west": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": { "block_light": 15, "sky_light": 15 }
}
},
"from": [0, 0, 0],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,37 @@
"texture": "#all",
"uv": [2.6, 2.6, 13.4, 13.4],
"cullface": "down",
"unlit": true
"neoforge_data": { "block_light": 15, "sky_light": 15 }
},
"up": {
"texture": "#all",
"uv": [2.6, 2.6, 13.4, 13.4],
"cullface": "up",
"unlit": true
"neoforge_data": { "block_light": 15, "sky_light": 15 }
},
"north": {
"texture": "#all",
"uv": [2.6, 2.6, 13.4, 13.4],
"cullface": "north",
"unlit": true
"neoforge_data": { "block_light": 15, "sky_light": 15 }
},
"south": {
"texture": "#all",
"uv": [2.6, 2.6, 13.4, 13.4],
"cullface": "south",
"unlit": true
"neoforge_data": { "block_light": 15, "sky_light": 15 }
},
"west": {
"texture": "#all",
"uv": [2.6, 2.6, 13.4, 13.4],
"cullface": "west",
"unlit": true
"neoforge_data": { "block_light": 15, "sky_light": 15 }
},
"east": {
"texture": "#all",
"uv": [2.6, 2.6, 13.4, 13.4],
"cullface": "east",
"unlit": true
"neoforge_data": { "block_light": 15, "sky_light": 15 }
}
}
}
Expand Down
Loading

0 comments on commit 6d1dbc6

Please sign in to comment.