Fix Sugar Position In Hand
This commit is contained in:
parent
9ae6cd17cf
commit
a6dad72778
@ -51,6 +51,7 @@
|
|||||||
* `Render Vignette` (Enabled By Default)
|
* `Render Vignette` (Enabled By Default)
|
||||||
* `Increase Render Chunk Size` (Enabled By Default)
|
* `Increase Render Chunk Size` (Enabled By Default)
|
||||||
* `Proper Entity Shading` (Enabled By Default)
|
* `Proper Entity Shading` (Enabled By Default)
|
||||||
|
* `Fix Sugar Position In Hand` (Enabled By Default)
|
||||||
* Existing Functionality (All Enabled By Default)
|
* Existing Functionality (All Enabled By Default)
|
||||||
* `Fix Screen Rendering When Hiding HUD`
|
* `Fix Screen Rendering When Hiding HUD`
|
||||||
* `Sanitize Usernames`
|
* `Sanitize Usernames`
|
||||||
|
@ -112,3 +112,4 @@ TRUE Render Entity Shadows
|
|||||||
TRUE Render Vignette
|
TRUE Render Vignette
|
||||||
TRUE Increase Render Chunk Size
|
TRUE Increase Render Chunk Size
|
||||||
TRUE Proper Entity Shading
|
TRUE Proper Entity Shading
|
||||||
|
TRUE Fix Sugar Position In Hand
|
@ -442,6 +442,11 @@ static int Dimension_isValidSpawn_Level_getTopTile_injection(Level *self, int x,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Prevent Sugar From Being "handEquipped()"
|
||||||
|
static Item *Item_initItems_Item_handEquipped_injection(Item *self) {
|
||||||
|
return self;
|
||||||
|
}
|
||||||
|
|
||||||
// Init
|
// Init
|
||||||
void init_misc() {
|
void init_misc() {
|
||||||
// Sanitize Username
|
// Sanitize Username
|
||||||
@ -592,6 +597,11 @@ void init_misc() {
|
|||||||
overwrite_call((void *) 0xb198c, (void *) Dimension_isValidSpawn_Level_getTopTile_injection);
|
overwrite_call((void *) 0xb198c, (void *) Dimension_isValidSpawn_Level_getTopTile_injection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Fix Sugar Rendering
|
||||||
|
if (feature_has("Fix Sugar Position In Hand", server_disabled)) {
|
||||||
|
overwrite_call((void *) 0x976f8, (void *) Item_initItems_Item_handEquipped_injection);
|
||||||
|
}
|
||||||
|
|
||||||
// Disable overwrite_calls() After Minecraft::init
|
// Disable overwrite_calls() After Minecraft::init
|
||||||
misc_run_on_init([](__attribute__((unused)) Minecraft *minecraft) {
|
misc_run_on_init([](__attribute__((unused)) Minecraft *minecraft) {
|
||||||
thunk_enabler = [](__attribute__((unused)) void *a, __attribute__((unused)) void *b) -> void * {
|
thunk_enabler = [](__attribute__((unused)) void *a, __attribute__((unused)) void *b) -> void * {
|
||||||
|
@ -26,6 +26,7 @@ virtual-method std::string getDescriptionId(const ItemInstance *item_instance) =
|
|||||||
virtual-method ItemInstance *getCraftingRemainingItem(ItemInstance *item_instance) = 0x84;
|
virtual-method ItemInstance *getCraftingRemainingItem(ItemInstance *item_instance) = 0x84;
|
||||||
// Swing = 0, eating = 1, drinking = 2, bow = 4, anything else is nothing
|
// Swing = 0, eating = 1, drinking = 2, bow = 4, anything else is nothing
|
||||||
virtual-method int getUseAnimation() = 0x94;
|
virtual-method int getUseAnimation() = 0x94;
|
||||||
|
virtual-method Item *handEquipped() = 0x58;
|
||||||
|
|
||||||
property int id = 0x4;
|
property int id = 0x4;
|
||||||
property int max_damage = 0x8;
|
property int max_damage = 0x8;
|
||||||
|
Loading…
Reference in New Issue
Block a user