Skip to content

Commit

Permalink
Add support for 1.21.1 (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapha149 committed Aug 20, 2024
1 parent f2acc7f commit cf20999
Show file tree
Hide file tree
Showing 34 changed files with 38 additions and 36 deletions.
2 changes: 1 addition & 1 deletion 1_10_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>signgui-parent</artifactId>
<groupId>de.rapha149.signgui</groupId>
<version>2.4.0</version>
<version>2.4.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion 1_11_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>signgui-parent</artifactId>
<groupId>de.rapha149.signgui</groupId>
<version>2.4.0</version>
<version>2.4.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion 1_12_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>signgui-parent</artifactId>
<groupId>de.rapha149.signgui</groupId>
<version>2.4.0</version>
<version>2.4.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion 1_13_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>signgui-parent</artifactId>
<groupId>de.rapha149.signgui</groupId>
<version>2.4.0</version>
<version>2.4.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion 1_13_R2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>signgui-parent</artifactId>
<groupId>de.rapha149.signgui</groupId>
<version>2.4.0</version>
<version>2.4.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion 1_14_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>signgui-parent</artifactId>
<groupId>de.rapha149.signgui</groupId>
<version>2.4.0</version>
<version>2.4.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion 1_15_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>signgui-parent</artifactId>
<groupId>de.rapha149.signgui</groupId>
<version>2.4.0</version>
<version>2.4.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion 1_16_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>signgui-parent</artifactId>
<groupId>de.rapha149.signgui</groupId>
<version>2.4.0</version>
<version>2.4.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion 1_16_R2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>signgui-parent</artifactId>
<groupId>de.rapha149.signgui</groupId>
<version>2.4.0</version>
<version>2.4.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion 1_16_R3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>signgui-parent</artifactId>
<groupId>de.rapha149.signgui</groupId>
<version>2.4.0</version>
<version>2.4.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion 1_17_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>signgui-parent</artifactId>
<groupId>de.rapha149.signgui</groupId>
<version>2.4.0</version>
<version>2.4.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion 1_18_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>signgui-parent</artifactId>
<groupId>de.rapha149.signgui</groupId>
<version>2.4.0</version>
<version>2.4.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion 1_18_R2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>signgui-parent</artifactId>
<groupId>de.rapha149.signgui</groupId>
<version>2.4.0</version>
<version>2.4.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion 1_19_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>signgui-parent</artifactId>
<groupId>de.rapha149.signgui</groupId>
<version>2.4.0</version>
<version>2.4.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion 1_19_R2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>signgui-parent</artifactId>
<groupId>de.rapha149.signgui</groupId>
<version>2.4.0</version>
<version>2.4.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion 1_19_R3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>signgui-parent</artifactId>
<groupId>de.rapha149.signgui</groupId>
<version>2.4.0</version>
<version>2.4.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion 1_20_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>signgui-parent</artifactId>
<groupId>de.rapha149.signgui</groupId>
<version>2.4.0</version>
<version>2.4.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion 1_20_R2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>signgui-parent</artifactId>
<groupId>de.rapha149.signgui</groupId>
<version>2.4.0</version>
<version>2.4.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion 1_20_R3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>signgui-parent</artifactId>
<groupId>de.rapha149.signgui</groupId>
<version>2.4.0</version>
<version>2.4.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion 1_20_R4/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>signgui-parent</artifactId>
<groupId>de.rapha149.signgui</groupId>
<version>2.4.0</version>
<version>2.4.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
4 changes: 2 additions & 2 deletions 1_21_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>signgui-parent</artifactId>
<groupId>de.rapha149.signgui</groupId>
<version>2.4.0</version>
<version>2.4.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -19,7 +19,7 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
<version>1.21-R0.1-SNAPSHOT</version>
<version>1.21.1-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import net.minecraft.server.network.ServerCommonPacketListenerImpl;
import net.minecraft.world.item.EnumColor;
import net.minecraft.world.level.World;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.block.entity.SignText;
import net.minecraft.world.level.block.entity.TileEntitySign;
import org.bukkit.DyeColor;
Expand Down Expand Up @@ -76,7 +77,7 @@ public void openSignEditor(Player player, String[] lines, Object[] adventureLine
Location loc = signLoc != null ? signLoc : getDefaultLocation(player);
BlockPosition pos = new BlockPosition(loc.getBlockX(), loc.getBlockY(), loc.getBlockZ());

TileEntitySign sign = new TileEntitySign(pos, null);
TileEntitySign sign = new TileEntitySign(pos, Blocks.cE.o());
SignText signText = sign.a(true) // flag = front/back of sign
.a(EnumColor.valueOf(color.toString()))
.a(glow);
Expand Down
2 changes: 1 addition & 1 deletion 1_8_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>signgui-parent</artifactId>
<groupId>de.rapha149.signgui</groupId>
<version>2.4.0</version>
<version>2.4.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion 1_8_R2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>signgui-parent</artifactId>
<groupId>de.rapha149.signgui</groupId>
<version>2.4.0</version>
<version>2.4.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion 1_8_R3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>signgui-parent</artifactId>
<groupId>de.rapha149.signgui</groupId>
<version>2.4.0</version>
<version>2.4.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion 1_9_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>signgui-parent</artifactId>
<groupId>de.rapha149.signgui</groupId>
<version>2.4.0</version>
<version>2.4.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion 1_9_R2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>signgui-parent</artifactId>
<groupId>de.rapha149.signgui</groupId>
<version>2.4.0</version>
<version>2.4.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion Mojang1_20_R4/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>signgui-parent</artifactId>
<version>2.4.0</version>
<version>2.4.1</version>
<groupId>de.rapha149.signgui</groupId>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
4 changes: 2 additions & 2 deletions Mojang1_21_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>signgui-parent</artifactId>
<version>2.4.0</version>
<version>2.4.1</version>
<groupId>de.rapha149.signgui</groupId>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand All @@ -20,7 +20,7 @@
<dependency>
<groupId>ca.bkaw</groupId>
<artifactId>paper-nms</artifactId>
<version>1.21-SNAPSHOT</version>
<version>1.21.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import net.minecraft.network.protocol.game.ServerboundSignUpdatePacket;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.server.network.ServerGamePacketListenerImpl;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.block.entity.SignBlockEntity;
import net.minecraft.world.level.block.entity.SignText;
import org.bukkit.DyeColor;
Expand Down Expand Up @@ -70,7 +71,7 @@ public void openSignEditor(Player player, String[] textLines, Object[] adventure
Location loc = signLoc != null ? signLoc : getDefaultLocation(player);
BlockPos pos = new BlockPos(loc.getBlockX(), loc.getBlockY(), loc.getBlockZ());

SignBlockEntity sign = new SignBlockEntity(pos, null);
SignBlockEntity sign = new SignBlockEntity(pos, Blocks.OAK_SIGN.defaultBlockState());
SignText signText = sign.getText(true) // flag = front/back of sign
.setColor(net.minecraft.world.item.DyeColor.valueOf(color.toString()))
.setHasGlowingText(glow);
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Maven dependency:
<dependency>
<groupId>de.rapha149.signgui</groupId>
<artifactId>signgui</artifactId>
<version>2.4.0</version>
<version>2.4.1</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<parent>
<artifactId>signgui-parent</artifactId>
<version>2.4.0</version>
<version>2.4.1</version>
<groupId>de.rapha149.signgui</groupId>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>de.rapha149.signgui</groupId>
<artifactId>signgui-parent</artifactId>
<packaging>pom</packaging>
<version>2.4.0</version>
<version>2.4.1</version>

<modules>
<module>api</module>
Expand Down
2 changes: 1 addition & 1 deletion wrapper/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<artifactId>signgui-parent</artifactId>
<groupId>de.rapha149.signgui</groupId>
<version>2.4.0</version>
<version>2.4.1</version>
</parent>

<artifactId>signgui-wrapper</artifactId>
Expand Down

0 comments on commit cf20999

Please sign in to comment.