CraftBook 3

CraftBook 3

139k Downloads

[mc1279] - player.trap

LadyCailinBot opened this issue ยท 2 comments

commented

CRAFTBOOK-2937 - Reported by Andy_S

src/main/java/com/sk89q/craftbook/circuits/gates/world/entity/PlayerTrap.java

3rd line expects an ampersand (ie 5&20) but &n is color code; modify to = sign.

46 - damage = Integer.parseInt(RegexUtil.AMPERSAND_PATTERN.split(getSign().getLine(2))[1]);
46 + damage = Integer.parseInt(RegexUtil.EQUALS_PATTERN.split(getSign().getLine(2))[2]);

commented

Comment by me4502

Hrm, okay. I'll add this, but I'll also need to add a converter

commented

Comment by Andy_S

Thanks :) (i just pointed out where the problem resides :])