Fix Q Behavior
This commit is contained in:
parent
fae728061a
commit
ed58356dd8
@ -23,7 +23,7 @@ void input_drop(int drop_slot) {
|
|||||||
|
|
||||||
// Handle Drop Item Presses
|
// Handle Drop Item Presses
|
||||||
static void _handle_drop(unsigned char *minecraft) {
|
static void _handle_drop(unsigned char *minecraft) {
|
||||||
if ((!creative_is_restricted() || !(*Minecraft_isCreativeMode)(minecraft)) && (drop_item_presses > 0 || drop_slot_pressed)) {
|
if (((*(unsigned char **) (minecraft + Minecraft_screen_property_offset)) == NULL) && (!creative_is_restricted() || !(*Minecraft_isCreativeMode)(minecraft)) && (drop_item_presses > 0 || drop_slot_pressed)) {
|
||||||
// Get Player
|
// Get Player
|
||||||
unsigned char *player = *(unsigned char **) (minecraft + Minecraft_player_property_offset);
|
unsigned char *player = *(unsigned char **) (minecraft + Minecraft_player_property_offset);
|
||||||
if (player != NULL) {
|
if (player != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user