Suggested fixes but they compile
This commit is contained in:
parent
438865c76a
commit
ec0dd41b46
|
@ -31,8 +31,7 @@ static void TripodCamera_tick_Level_addParticle_call_injection(Level *level, std
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fix camera legs
|
// Fix camera legs
|
||||||
void EntityRenderer_bindTexture_Camera_leg_injection(EntityRenderer *self, __attribute_
|
void EntityRenderer_bindTexture_Camera_leg_injection(EntityRenderer *self, __attribute__((unused)) std::string *file) {
|
||||||
_((unused)) std::string *file) {
|
|
||||||
std::string camera = "item/camera.png";
|
std::string camera = "item/camera.png";
|
||||||
self->bindTexture(&camera);
|
self->bindTexture(&camera);
|
||||||
}
|
}
|
||||||
|
|
|
@ -780,7 +780,7 @@ static float Zombie_aiStep_getBrightness_injection(Entity *self, float param_1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fix grass_carried's bottom texture
|
// Fix grass_carried's bottom texture
|
||||||
static int CarriedTile_getTexture2_injection(Tile_getTexture2_t original, Tile *self, int face, int metadata) {
|
static int CarriedTile_getTexture2_injection(CarriedTile_getTexture2_t original, CarriedTile *self, int face, int metadata) {
|
||||||
if (face == 0) return 2;
|
if (face == 0) return 2;
|
||||||
return original(self, face, metadata);
|
return original(self, face, metadata);
|
||||||
}
|
}
|
||||||
|
@ -1055,6 +1055,6 @@ void init_misc() {
|
||||||
|
|
||||||
// Fix grass_carried's bottom texture
|
// Fix grass_carried's bottom texture
|
||||||
if (feature_has("Fix Grass's Bottom Texture", server_disabled)) {
|
if (feature_has("Fix Grass's Bottom Texture", server_disabled)) {
|
||||||
patch_address((void *) CarriedTile_getTexture2, (void *) CarriedTile_getTexture2_injection);
|
overwrite_calls(CarriedTile_getTexture2, CarriedTile_getTexture2_injection);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -149,6 +149,7 @@ set(SRC
|
||||||
src/tile/StemTile.def
|
src/tile/StemTile.def
|
||||||
src/tile/Tile_SoundType.def
|
src/tile/Tile_SoundType.def
|
||||||
src/tile/TileRenderer.def
|
src/tile/TileRenderer.def
|
||||||
|
src/tile/CarriedTile.def
|
||||||
src/tile/GrassTile.def
|
src/tile/GrassTile.def
|
||||||
src/tile/HeavyTile.def
|
src/tile/HeavyTile.def
|
||||||
src/tile/EntityTile.def
|
src/tile/EntityTile.def
|
||||||
|
|
3
symbols/src/tile/CarriedTile.def
Normal file
3
symbols/src/tile/CarriedTile.def
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
extends Tile;
|
||||||
|
|
||||||
|
vtable 0x114798;
|
Loading…
Reference in New Issue
Block a user