Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

Commit

Permalink
release for 0.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
DefinitlyEvil committed Dec 24, 2017
1 parent 7d43b7e commit 8c77961
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>proxy</artifactId>
<version>0.3.1</version>
<version>0.3.2</version>
<name>DragonProxy</name>
<groupId>org.dragonet.proxy</groupId>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public static EntityMetaData createDefault() {
data.setGenericFlag(Constants.DATA_FLAG_CAN_CLIMB, true);
data.set(Constants.DATA_AIR, new ShortMeta((short) 400));
data.set(Constants.DATA_MAX_AIR, new ShortMeta((short) 400));
data.set(Constants.DATA_NAMETAG, new ByteArrayMeta(""));
// data.set(Constants.DATA_NAMETAG, new ByteArrayMeta(""));
data.set(Constants.DATA_LEAD_HOLDER_EID, new LongMeta(-1L));
data.set(Constants.DATA_SCALE, new FloatMeta(1.0f));
// data.set(Constants.DATA_BED_POSITION, new BlockPositionMeta(new BlockPosition(0, 0, 0)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static EntityMetaData translateToPE(UpstreamSession session, EntityMetada
peMeta.set(EntityMetaData.Constants.DATA_AIR, new ShortMeta(((Integer) m.getValue()).shortValue()));
break;
case 2:// Name tag
if ((String) m.getValue() != "") {
if (!m.getValue().equals("")) {
peMeta.set(EntityMetaData.Constants.DATA_NAMETAG, new ByteArrayMeta((String) m.getValue()));
}
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ public PEPacket[] translate(UpstreamSession session, ServerPlayerPositionRotatio
pkAddPlayer.pitch = entity.pitch;
pkAddPlayer.username = playerListEntry.getProfile().getName();

pkAddPlayer.meta = EntityMetaTranslator.translateToPE(session, entity.pcMeta, EntityType.PLAYER);
// TODO: this does not work well yet
// pkAddPlayer.meta = EntityMetaTranslator.translateToPE(session, entity.pcMeta, EntityType.PLAYER);

pkAddPlayer.meta = EntityMetaData.createDefault();
pkAddPlayer.meta.set(EntityMetaData.Constants.DATA_NAMETAG, new ByteArrayMeta(playerListEntry.getProfile().getName())); //hacky for now

PlayerSkinPacket skin = new PlayerSkinPacket(entity.playerUniqueId);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/dragonet/proxy/utilities/Versioning.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

public class Versioning {

public static final String RELEASE_VERSION = "0.3.1";
public static final String RELEASE_VERSION = "0.3.2";
public static final String MINECRAFT_PC_VERSION = "1.12.2";
// public static final int MINECRAFT_PC_PROTOCOL = 47;
// This is STRICT to MCPE binary's definition, DO NOT CHANGE
Expand Down

0 comments on commit 8c77961

Please sign in to comment.