Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void onCraft(InventoryClickEvent e) {
}

if(!hasInputs(player, parts)) {
player.sendMessage("搂cLacking inputs");
player.sendMessage("搂cYou lack the materials for this weapon.");
player.playSound(player.getLocation(), Sound.ENTITY_VILLAGER_NO, 1f, 1f);
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ public boolean hasClassConflict(Player player, Collection<GunPart> parts) {
Set<String> resolved = resolveClasses(parts);
if (resolved != null) return false; // no conflict

player.sendMessage("搂cClass conflict! These parts have incompatible class requirements:");
player.sendMessage("搂cThese parts cannot go together. They are made for different callings:");
for (GunPart part : parts) {
List<String> reqs = part.getClassRequirements();
if (!reqs.isEmpty()) {
Expand Down Expand Up @@ -379,7 +379,7 @@ public ItemStack createOutputItem(GunType type, Collection<GunPart> parts, boole
if (skin == null) {
ItemStack unavailable = new ItemStack(Material.BARRIER);
ItemMeta unavailableMeta = unavailable.getItemMeta();
unavailableMeta.setDisplayName("搂cNo compatible skin");
unavailableMeta.setDisplayName("搂cNo known design fits these parts");
unavailable.setItemMeta(unavailableMeta);
return unavailable;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void insufficientMaterialsRejectWithoutConsumption() {
manager.onCraft(click);
assertEquals(2, material.getAmount());
verify(inventory, never()).addItem(any(ItemStack.class));
verify(player).sendMessage("搂cLacking inputs");
verify(player).sendMessage("搂cYou lack the materials for this weapon.");
}

@Test
Expand Down