Project cleanup pre merge.

This commit is contained in:
2023-07-15 09:23:48 -04:00
parent 134b651df8
commit 9bbdef224d
747 changed files with 99704 additions and 101200 deletions
@@ -20,29 +20,29 @@ import engine.objects.PlayerCharacter;
public class FurnitureHandler extends AbstractClientMsgHandler {
public FurnitureHandler() {
super(FurnitureMsg.class);
}
public FurnitureHandler() {
super(FurnitureMsg.class);
}
@Override
protected boolean _handleNetMsg(ClientNetMsg baseMsg,
ClientConnection origin) throws MsgSendException {
@Override
protected boolean _handleNetMsg(ClientNetMsg baseMsg,
ClientConnection origin) throws MsgSendException {
FurnitureMsg msg = (FurnitureMsg) baseMsg;
FurnitureMsg msg = (FurnitureMsg) baseMsg;
PlayerCharacter pc = origin.getPlayerCharacter();
if (pc == null) {
return false;
}
if (msg.getType() == 1)
msg.setType(2);
if (msg.getType() == 3)
msg.setType(2);
Dispatch dispatch = Dispatch.borrow(pc, msg);
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
return true;
}
PlayerCharacter pc = origin.getPlayerCharacter();
if (pc == null) {
return false;
}
if (msg.getType() == 1)
msg.setType(2);
if (msg.getType() == 3)
msg.setType(2);
Dispatch dispatch = Dispatch.borrow(pc, msg);
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
return true;
}
}