Allow entity selectors to select "." in entity names. Closes #2125
This commit is contained in:
parent
a2e06d968e
commit
8187f48ddc
1 changed files with 14 additions and 0 deletions
|
@ -0,0 +1,14 @@
|
||||||
|
--- ../src-base/minecraft/net/minecraft/command/PlayerSelector.java
|
||||||
|
+++ ../src-work/minecraft/net/minecraft/command/PlayerSelector.java
|
||||||
|
@@ -36,9 +36,9 @@
|
||||||
|
|
||||||
|
public class PlayerSelector
|
||||||
|
{
|
||||||
|
- private static final Pattern field_82389_a = Pattern.compile("^@([pare])(?:\\[([\\w=,!-]*)\\])?$");
|
||||||
|
+ private static final Pattern field_82389_a = Pattern.compile("^@([pare])(?:\\[([\\w\\.=,!-]*)\\])?$"); // FORGE: allow . in entity selectors
|
||||||
|
private static final Pattern field_82387_b = Pattern.compile("\\G([-!]?[\\w-]*)(?:$|,)");
|
||||||
|
- private static final Pattern field_82388_c = Pattern.compile("\\G(\\w+)=([-!]?[\\w-]*)(?:$|,)");
|
||||||
|
+ private static final Pattern field_82388_c = Pattern.compile("\\G(\\w+)=([-!]?[\\w\\.-]*)(?:$|,)"); // FORGE: allow . in entity selectors
|
||||||
|
private static final Set<String> field_179666_d = Sets.newHashSet(new String[] {"x", "y", "z", "dx", "dy", "dz", "rm", "r"});
|
||||||
|
|
||||||
|
public static EntityPlayerMP func_82386_a(ICommandSender p_82386_0_, String p_82386_1_)
|
Loading…
Reference in a new issue