Switching from UTF-8 to cp1252.
Dieser Commit ist enthalten in:
Ursprung
8e70a56768
Commit
fe3a69bd3d
@ -6,6 +6,10 @@
|
|||||||
<name>Item Disguise</name>
|
<name>Item Disguise</name>
|
||||||
<description>Change the appearance of inventory items.</description>
|
<description>Change the appearance of inventory items.</description>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<project.build.sourceEncoding>cp1252</project.build.sourceEncoding>
|
||||||
|
</properties>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
<id>bukkit-rep</id>
|
<id>bukkit-rep</id>
|
||||||
|
@ -110,6 +110,9 @@ public class HideEnchantmentsListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void removeEnchantments(ItemStack stack) {
|
private void removeEnchantments(ItemStack stack) {
|
||||||
|
if (stack == null)
|
||||||
|
return;
|
||||||
|
|
||||||
Object[] copy = stack.getEnchantments().keySet().toArray();
|
Object[] copy = stack.getEnchantments().keySet().toArray();
|
||||||
|
|
||||||
for (Object enchantment : copy) {
|
for (Object enchantment : copy) {
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<description>Provides read/write access to the Minecraft protocol.</description>
|
<description>Provides read/write access to the Minecraft protocol.</description>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>cp1252</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
|
@ -142,7 +142,7 @@ public class PacketContainer implements Serializable {
|
|||||||
* @return A modifier for ItemStack fields.
|
* @return A modifier for ItemStack fields.
|
||||||
*/
|
*/
|
||||||
public StructureModifier<ItemStack> getItemModifier() {
|
public StructureModifier<ItemStack> getItemModifier() {
|
||||||
// Convert from and to the Bukkit wrapper
|
// Convert to and from the Bukkit wrapper
|
||||||
return structureModifier.<ItemStack>withType(net.minecraft.server.ItemStack.class,
|
return structureModifier.<ItemStack>withType(net.minecraft.server.ItemStack.class,
|
||||||
getIgnoreNull(new EquivalentConverter<ItemStack>() {
|
getIgnoreNull(new EquivalentConverter<ItemStack>() {
|
||||||
public Object getGeneric(ItemStack specific) {
|
public Object getGeneric(ItemStack specific) {
|
||||||
|
@ -28,3 +28,4 @@ public interface EquivalentConverter<TType> {
|
|||||||
public Object getGeneric(TType specific);
|
public Object getGeneric(TType specific);
|
||||||
public Class<TType> getSpecificType();
|
public Class<TType> getSpecificType();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren