Fix toggleable keybindings still being active while in GUI Fixes #7370 (#7373)

This commit is contained in:
sciwhiz12 2020-10-03 07:28:21 +08:00 committed by GitHub
parent 9177ac1b2e
commit 78d69db79e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 2 deletions

View File

@ -13,5 +13,5 @@
}
}
+ @Override public boolean func_151470_d() { return this.field_74513_e; }
+ @Override public boolean func_151470_d() { return this.field_74513_e && (isConflictContextAndModifierActive() || field_228053_a_.getAsBoolean()); }
}

View File

@ -1,4 +1,3 @@
/*
* Minecraft Forge
* Copyright (c) 2016-2020.

View File

@ -1,3 +1,22 @@
/*
* Minecraft Forge
* Copyright (c) 2016-2020.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation version 2.1
* of the License.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package net.minecraftforge.debug.world;
import net.minecraft.util.ResourceLocation;