Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
Remove ability to access dog inventory by right clicking
Browse files Browse the repository at this point in the history
Add migration message
  • Loading branch information
percivalalb committed Oct 3, 2020
1 parent a51b3d9 commit bd35408
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/main/java/doggytalents/common/talent/PackPuppyTalent.java
Expand Up @@ -20,6 +20,7 @@
import net.minecraft.util.Direction;
import net.minecraft.util.Hand;
import net.minecraft.util.SoundEvents;
import net.minecraft.util.text.TranslationTextComponent;
import net.minecraft.world.World;
import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.common.capabilities.CapabilityInject;
Expand Down Expand Up @@ -79,13 +80,7 @@ public ActionResultType processInteract(AbstractDogEntity dogIn, World worldIn,
if(dogIn.canInteract(playerIn)) {

if (!playerIn.world.isRemote) {
if(playerIn instanceof ServerPlayerEntity && !(playerIn instanceof FakePlayer)) {
ServerPlayerEntity serverPlayer = (ServerPlayerEntity)playerIn;

Screens.openPackPuppyScreen(serverPlayer, dogIn);
}

dogIn.playSound(SoundEvents.BLOCK_CHEST_OPEN, 0.5F, dogIn.world.rand.nextFloat() * 0.1F + 0.9F);
playerIn.sendStatusMessage(new TranslationTextComponent("talent.doggytalents.pack_puppy.version_migration"), false);
}
return ActionResultType.SUCCESS;
}
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/doggytalents/lang/en_gb.json
Expand Up @@ -118,6 +118,7 @@
"talent.doggytalents.puppy_eyes.msg.6.line.2": "AAAAAAAAAAAAAAAAAAAaaaaaaaaaa",
"talent.doggytalents.puppy_eyes.msg.6.line.3": "aaaaaaaaaAAAAAAAAWWWWWWWWW!",
"talent.doggytalents.bed_finder.dog_mount": "Click to make %s dismount",
"talent.doggytalents.pack_puppy.version_migration": "The dog inventory is no longer accessed this way. Open your inventory and click on the dog inventories button",
"dog.mode.wandering": "Wandering",
"dog.mode.tactical": "Tactical",
"dog.mode.aggressive": "Aggressive",
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/doggytalents/lang/en_us.json
Expand Up @@ -118,6 +118,7 @@
"talent.doggytalents.puppy_eyes.msg.6.line.2": "AAAAAAAAAAAAAAAAAAAaaaaaaaaaa",
"talent.doggytalents.puppy_eyes.msg.6.line.3": "aaaaaaaaaAAAAAAAAWWWWWWWWW!",
"talent.doggytalents.bed_finder.dog_mount": "Click to make %s dismount",
"talent.doggytalents.pack_puppy.version_migration": "The dog inventory is no longer accessed this way. Open your inventory and click on the dog inventories button",
"dog.mode.wandering": "Wandering",
"dog.mode.tactical": "Tactical",
"dog.mode.aggressive": "Aggressive",
Expand Down

0 comments on commit bd35408

Please sign in to comment.