Skip to content

Commit

Permalink
fix: PaletteUtils and add run config
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolLoong committed Mar 8, 2024
1 parent 08b1672 commit 95f4a54
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@

**/build/
**/bin/

!.run/Allay.run.xml
#runing output file
/run/
.run/**
/Allay-Server/caches/
/Allay-Server/logs/
/Allay-Server/players/
Expand Down
11 changes: 3 additions & 8 deletions .run/Allay.run.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Allay" type="Application" factoryName="Application" activateToolWindowBeforeRun="false" nameIsGenerated="true">
<configuration default="false" name="Allay" type="Application" factoryName="Application" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="org.allaymc.server.Allay" />
<module name="Allay.Allay-Server.main" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/run" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="org.allaymc.api.utils.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<option name="VM_PARAMETERS" value="-Dfile.encoding=UTF-8" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/.run" />
<method v="2">
<option name="Make" enabled="true" />
</method>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private static Pair<Integer, SemVersion> deserialize(LittleEndianDataInputStream
if (name.equals("version")) {
int version = input.readInt();
byteBuf.resetReaderIndex();
if (version != ProtocolInfo.BLOCK_STATE_VERSION_NO_REVISION) {
if (version != ProtocolInfo.BLOCK_STATE_VERSION) {
return Pair.of(null, getSemVersion(version));
}
byte[] result = new byte[end - byteBuf.readerIndex()];
Expand Down

0 comments on commit 95f4a54

Please sign in to comment.