Skip to content

Commit

Permalink
Send the client the base block and metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Sanders<zidane@outlook.com>
  • Loading branch information
Chris Sanders committed Oct 22, 2014
1 parent 301bbea commit 7f73004
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,8 @@ public boolean isIndirectlyProvidingPowerTo(World world, int x, int y, int z, Bl
@Override
public void readData(SpoutInputStream input) throws IOException {
customId = input.readInt();
blockId = input.readInt();
metadata = input.readInt();
setName(input.readString());
plugin = Bukkit.getServer().getPluginManager().getPlugin(input.readString());
opaque = input.readBoolean();
Expand All @@ -561,6 +563,8 @@ public void readData(SpoutInputStream input) throws IOException {
@Override
public void writeData(SpoutOutputStream output) throws IOException {
output.writeInt(customId);
output.writeInt(blockId);
output.writeInt(metadata);
output.writeString(getName());
output.writeString(getPlugin().getDescription().getName());
output.writeBoolean(isOpaque());
Expand All @@ -584,7 +588,7 @@ public PacketType getPacketType() {

@Override
public int getVersion() {
return 0;
return 1;
}

public boolean isPowerSource() {
Expand Down

0 comments on commit 7f73004

Please sign in to comment.