mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-12 08:27:42 +00:00
Revert right-click interaction with items in the offhand (Backhand) (#51)
This commit is contained in:
1 parent
6fcc470946
commit
9c8e525bb2
2 files changed
-10
No files matched your search
@@ -24,12 +24,10 @@ import com.jaquadro.minecraft.storagedrawers.api.storage.attribute.LockAttribute
|
||||
import com.jaquadro.minecraft.storagedrawers.block.tile.TileEntityController;
|
||||
import com.jaquadro.minecraft.storagedrawers.core.ModCreativeTabs;
|
||||
import com.jaquadro.minecraft.storagedrawers.core.ModItems;
|
||||
import com.jaquadro.minecraft.storagedrawers.integration.BackhandIntegrationModule;
|
||||
import com.jaquadro.minecraft.storagedrawers.item.ItemPersonalKey;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import xonin.backhand.api.core.BackhandUtils;
|
||||
|
||||
public class BlockController extends BlockContainer implements INetworked {
|
||||
|
||||
@@ -124,10 +122,6 @@ public class BlockController extends BlockContainer implements INetworked {
|
||||
TileEntityController te = getTileEntitySafe(world, x, y, z);
|
||||
ItemStack item = player.inventory.getCurrentItem();
|
||||
|
||||
if (BackhandIntegrationModule.isEnabled() && BackhandUtils.getOffhandItem(player) != null && item == null) {
|
||||
if ((BackhandUtils.useOffhandItem(player, () -> true))) return false;
|
||||
}
|
||||
|
||||
if (item != null && item.getItem() != null) {
|
||||
if (item.getItem() == ModItems.shroudKey) {
|
||||
if (!world.isRemote) te.toggleShroud(player.getGameProfile());
|
||||
|
||||
@@ -338,10 +338,6 @@ public class BlockDrawers extends BlockContainer implements IExtendedBlockClickH
|
||||
TileEntityDrawers tileDrawers = getTileEntitySafe(world, x, y, z);
|
||||
ItemStack item = player.inventory.getCurrentItem();
|
||||
|
||||
if (BackhandIntegrationModule.isEnabled() && BackhandUtils.getOffhandItem(player) != null && item == null) {
|
||||
if ((BackhandUtils.useOffhandItem(player, () -> true))) return false;
|
||||
}
|
||||
|
||||
if (!SecurityManager.hasAccess(player.getGameProfile(), tileDrawers)) return false;
|
||||
|
||||
if (StorageDrawers.config.cache.debugTrace) {
|
||||
|
||||
Reference in new issue
Block a user