SPIGOT-7335: Fix typo in TextDisplay#TextAlignment enum name
This commit is contained in:
parent
f01fb4979e
commit
15a3eac661
@ -106,13 +106,13 @@ public class CraftTextDisplay extends CraftDisplay implements TextDisplay {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public TextAligment getAlignment() {
|
public TextAlignment getAlignment() {
|
||||||
Display.TextDisplay.Align nms = Display.TextDisplay.getAlign(getHandle().getFlags());
|
Display.TextDisplay.Align nms = Display.TextDisplay.getAlign(getHandle().getFlags());
|
||||||
return TextAligment.valueOf(nms.name());
|
return TextAlignment.valueOf(nms.name());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setAlignment(TextAligment alignment) {
|
public void setAlignment(TextAlignment alignment) {
|
||||||
Preconditions.checkArgument(alignment != null, "Alignment cannot be null");
|
Preconditions.checkArgument(alignment != null, "Alignment cannot be null");
|
||||||
|
|
||||||
switch (alignment) {
|
switch (alignment) {
|
||||||
|
@ -202,6 +202,13 @@ public class Commodore
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SPIGOT-7335
|
||||||
|
if ( owner.equals( "org/bukkit/entity/TextDisplay$TextAligment" ) )
|
||||||
|
{
|
||||||
|
super.visitFieldInsn( opcode, "org/bukkit/entity/TextDisplay$TextAlignment", name, desc );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ( modern )
|
if ( modern )
|
||||||
{
|
{
|
||||||
if ( owner.equals( "org/bukkit/Material" ) )
|
if ( owner.equals( "org/bukkit/Material" ) )
|
||||||
@ -305,6 +312,22 @@ public class Commodore
|
|||||||
super.visitMethodInsn( opcode, owner, name, "(I)Lorg/bukkit/map/MapView;", itf );
|
super.visitMethodInsn( opcode, owner, name, "(I)Lorg/bukkit/map/MapView;", itf );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// SPIGOT-7335
|
||||||
|
if ( owner.equals( "org/bukkit/entity/TextDisplay$TextAligment" ) )
|
||||||
|
{
|
||||||
|
super.visitMethodInsn( opcode, "org/bukkit/entity/TextDisplay$TextAlignment", name, desc, itf );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if ( desc.equals( "(Lorg/bukkit/entity/TextDisplay$TextAligment;)V" ) )
|
||||||
|
{
|
||||||
|
super.visitMethodInsn( opcode, owner, name, "(Lorg/bukkit/entity/TextDisplay$TextAlignment;)V", itf );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if ( desc.equals( "()Lorg/bukkit/entity/TextDisplay$TextAligment;" ) )
|
||||||
|
{
|
||||||
|
super.visitMethodInsn( opcode, owner, name, "()Lorg/bukkit/entity/TextDisplay$TextAlignment;", itf );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ( modern )
|
if ( modern )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user